Shape

Trait Shape 

Source
pub trait Shape: Debug {
    // Required methods
    fn bounding_box(&self) -> Rectangle;
    fn as_any(&self) -> &dyn Any;
}

Required Methods§

Source

fn bounding_box(&self) -> Rectangle

Source

fn as_any(&self) -> &dyn Any

Implementors§