Struct makepad_vector::trapezoidator::Trapezoidator
source · [−]pub struct Trapezoidator { /* private fields */ }
Expand description
Converts a sequence of line path commands to a sequence of trapezoids. The line path commands should define a set of closed contours.
Implementations
sourceimpl Trapezoidator
impl Trapezoidator
sourcepub fn new() -> Trapezoidator
pub fn new() -> Trapezoidator
Creates a new trapezoidator.
sourcepub fn trapezoidate<P: LinePathIterator>(
&mut self,
path: P
) -> Option<Trapezoidate<'_>>
pub fn trapezoidate<P: LinePathIterator>(
&mut self,
path: P
) -> Option<Trapezoidate<'_>>
Returns an iterator over trapezoids corresponding to the given iterator over line path commands.
Trait Implementations
sourceimpl Clone for Trapezoidator
impl Clone for Trapezoidator
sourcefn clone(&self) -> Trapezoidator
fn clone(&self) -> Trapezoidator
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Trapezoidator
impl Debug for Trapezoidator
sourceimpl Default for Trapezoidator
impl Default for Trapezoidator
sourcefn default() -> Trapezoidator
fn default() -> Trapezoidator
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for Trapezoidator
impl Send for Trapezoidator
impl Sync for Trapezoidator
impl Unpin for Trapezoidator
impl UnwindSafe for Trapezoidator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more