You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: primitive.rs
    path of file: ./repos/iced/tiny_skia/src
    
    the code of the file until where you have to start completion: use crate::core::Rectangle;
use crate::graphics::Damage;

pub type Primitive = crate::graphics::Primitive<Custom>;

#[derive(Debug, Clone, PartialEq)]
pub enum Custom {
    /// A path filled with some paint.
    Fill {
        /// The path to fill.
        path: tiny_skia::Path,
        /// The paint to use.
  
    
    fn bounds(&self) -> Rectangle {
        match self {
            Self::Fill { path, .. } | Self::Stroke { path, .. } => {
                let bounds = path.bounds();

                Rectangle {
                    x: bounds.x(),
                    y: bounds.y(),
                    width: bounds.width(),
                    height: bounds.height(),
                }
                .expand(1.0)
            }
        }
    }