[][src]Trait lasy::Weight

pub trait Weight {
    fn weight(&self) -> u32;
}

Point types that have a weight associated with them.

This must be implemented for input point types. This weight represents the number of time units that should be spent drawing this point in order to accentuate it within the path.

Note that the output point type does not require storing this weight, and as such you can request a different output point type (e.g. that does not store the weight) from the interpolate_euler_circuit function.

Required methods

fn weight(&self) -> u32

The minimum number of extra times this point should be drawn.

0 is the default used for drawing sequences of smooth line segments.

Values greater than 0 are useful for accenting individual points.

Loading content...

Implementations on Foreign Types

impl<'a, T> Weight for &'a T where
    T: Weight
[src]

Loading content...

Implementors

Loading content...