[][src]Struct nannou::ui::prelude::text::cursor::XysPerLineFromText

pub struct XysPerLineFromText<'a> { /* fields omitted */ }

Similarly to XysPerLine, yields every possible cursor position within each line of text yielded by the given iterator.

Rather than taking an iterator type yielding lines and positioning data, this method constructs its own iterator to do so internally, saving some boilerplate involved in common XysPerLine use cases.

Yields (xs, y_range), where y_range is the Range occupied by the line across the y axis and xs is every possible cursor position along the x axis.

Trait Implementations

impl<'a> Clone for XysPerLineFromText<'a>[src]

impl<'a> Iterator for XysPerLineFromText<'a>[src]

type Item = (Xs<'a, 'a>, Range)

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a> RefUnwindSafe for XysPerLineFromText<'a>

impl<'a> Send for XysPerLineFromText<'a>

impl<'a> Sync for XysPerLineFromText<'a>

impl<'a> Unpin for XysPerLineFromText<'a>

impl<'a> UnwindSafe for XysPerLineFromText<'a>

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

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, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[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<I> IteratorRandom for I where
    I: Iterator
[src]

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

impl<T> ParallelBridge for T where
    T: Send + Iterator,
    <T as Iterator>::Item: Send
[src]

impl<T> SetParameter for T

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,