[][src]Struct nanachi::path_flatten::Flatten

pub struct Flatten<'a, I: Iterator<Item = &'a PathItem>> { /* fields omitted */ }

Iterator of flattened path.

Examples

use nanachi::{primitives::circle, path::Path, path_flatten::Flatten};
let path = circle(0.0, 0.0, 10.0);
let flatten_path = Path::new(Flatten::new(path.0.iter(), 1.0).collect());

Implementations

impl<'a, I: Iterator<Item = &'a PathItem>> Flatten<'a, I>[src]

pub fn new(it: I, tolerance: f64) -> Self[src]

Create Flatten.

tolerance is the tolerance for flattening error. Smaller tolerance makes generated curve smooth.

Trait Implementations

impl<'a, I: Iterator<Item = &'a PathItem>> Iterator for Flatten<'a, I>[src]

type Item = PathItem

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, I> RefUnwindSafe for Flatten<'a, I> where
    I: RefUnwindSafe

impl<'a, I> Send for Flatten<'a, I> where
    I: Send

impl<'a, I> Sync for Flatten<'a, I> where
    I: Sync

impl<'a, I> Unpin for Flatten<'a, I> where
    I: Unpin

impl<'a, I> UnwindSafe for Flatten<'a, I> where
    I: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> SetParameter for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.