Stroke

Trait Stroke 

Source
pub trait Stroke<V: Vertex, G> {
    // Required methods
    fn stroke(&mut self, geometry: G);
    fn stroke_with_transform<TX>(&mut self, geometry: G, transform: TX)
       where TX: Into<ColumnMatrix4<f32>>;
    fn stroke_with_color<C: Into<Color>>(&mut self, geometry: G, color: C);
    fn stroke_with_color_and_transform<C, TX>(
        &mut self,
        geometry: G,
        color: C,
        transform: TX,
    )
       where C: Into<Color>,
             TX: Into<ColumnMatrix4<f32>>;
}

Required Methods§

Source

fn stroke(&mut self, geometry: G)

Source

fn stroke_with_transform<TX>(&mut self, geometry: G, transform: TX)
where TX: Into<ColumnMatrix4<f32>>,

Source

fn stroke_with_color<C: Into<Color>>(&mut self, geometry: G, color: C)

Source

fn stroke_with_color_and_transform<C, TX>( &mut self, geometry: G, color: C, transform: TX, )
where C: Into<Color>, TX: Into<ColumnMatrix4<f32>>,

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§

Source§

impl<'a, G> Stroke<Vertex2D, G> for DrawList<'a>
where G: Into<Geometry<'a, Vertex2D>>,

Source§

impl<'a, G> Stroke<Vertex3D, G> for DrawList<'a>
where G: Into<Geometry<'a, Vertex3D>>,