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§
Source§impl 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§
Source§impl Clone for Trapezoidator
impl Clone for Trapezoidator
Source§fn clone(&self) -> Trapezoidator
fn clone(&self) -> Trapezoidator
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Trapezoidator
impl Debug for Trapezoidator
Source§impl Default for Trapezoidator
impl Default for Trapezoidator
Source§fn default() -> Trapezoidator
fn default() -> Trapezoidator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Trapezoidator
impl RefUnwindSafe for Trapezoidator
impl Send for Trapezoidator
impl Sync for Trapezoidator
impl Unpin for Trapezoidator
impl UnwindSafe for Trapezoidator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more