PathTrait

Trait PathTrait 

Source
pub trait PathTrait<D: PathDataTrait>:
    Transforms
    + Clone
    + PartialEq
    + Debug {
    // Required methods
    fn data(&self) -> &D;
    fn data_mut(&mut self) -> &mut D;
    fn into_data(self) -> D;
    fn bounds(&self) -> Rect;
    fn metadata(&self) -> &PathMetadata;
    fn metadata_mut(&mut self) -> &mut PathMetadata;

    // Provided methods
    fn start(&self) -> Option<Point> { ... }
    fn end(&self) -> Option<Point> { ... }
}

Required Methods§

Source

fn data(&self) -> &D

Source

fn data_mut(&mut self) -> &mut D

Source

fn into_data(self) -> D

Source

fn bounds(&self) -> Rect

Source

fn metadata(&self) -> &PathMetadata

Source

fn metadata_mut(&mut self) -> &mut PathMetadata

Provided Methods§

Source

fn start(&self) -> Option<Point>

Source

fn end(&self) -> Option<Point>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§