[][src]Struct conrod_core::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<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> 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.