Enum nannou::ui::utils::IterDiff [−][src]
pub enum IterDiff<E, I> { FirstMismatch(usize, Chain<Once<E>, I>), Longer(Chain<Once<E>, I>), Shorter(usize), }
Expand description
A type returned by the iter_diff
function.
Represents way in which the elements (of type E
) yielded by the iterator I
differ to some
other iterator yielding borrowed elements of the same type.
I
is some Iterator
yielding elements of type E
.
Variants
The index of the first non-matching element along with the iterator’s remaining elements starting with the first mis-matched element.
The remaining elements of the iterator.
Shorter(usize)
The total number of elements that were in the iterator.
Auto Trait Implementations
impl<E, I> RefUnwindSafe for IterDiff<E, I> where
E: RefUnwindSafe,
I: RefUnwindSafe,
impl<E, I> UnwindSafe for IterDiff<E, I> where
E: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more
pub fn vzip(self) -> V