Struct rasterize::utils::ArrayIter[][src]

pub struct ArrayIter<T, const SIZE: usize> { /* fields omitted */ }

Fixed sized iterator

This type is similar to a smallvec but it never allocates and just panics if you try to fit more data than its size.

Implementations

impl<T, const SIZE: usize> ArrayIter<T, SIZE>[src]

pub fn new() -> Self where
    T: Copy
[src]

pub fn push(&mut self, item: T)[src]

Push new element to the end of the iterator

Panics if size is exceeded

pub fn is_empty(&self) -> bool[src]

Check if iterator is empty

pub fn len(&self) -> usize[src]

Number of unconsumed elements

pub fn into_array(self) -> [Option<T>; SIZE][src]

Trait Implementations

impl<T: Clone, const SIZE: usize> Clone for ArrayIter<T, SIZE>[src]

impl<T: Copy, const SIZE: usize> Copy for ArrayIter<T, SIZE>[src]

impl<T, const SIZE: usize> Debug for ArrayIter<T, SIZE> where
    T: Debug
[src]

impl<T: Copy, const SIZE: usize> Default for ArrayIter<T, SIZE>[src]

impl<T, const SIZE: usize> DoubleEndedIterator for ArrayIter<T, SIZE>[src]

impl<T, const SIZE: usize> Extend<T> for ArrayIter<T, SIZE>[src]

impl<T: Copy, const SIZE: usize> FromIterator<T> for ArrayIter<T, SIZE>[src]

impl<T, const SIZE: usize> Iterator for ArrayIter<T, SIZE>[src]

type Item = T

The type of the elements being iterated over.

Auto Trait Implementations

impl<T, const SIZE: usize> RefUnwindSafe for ArrayIter<T, SIZE> where
    T: RefUnwindSafe

impl<T, const SIZE: usize> Send for ArrayIter<T, SIZE> where
    T: Send

impl<T, const SIZE: usize> Sync for ArrayIter<T, SIZE> where
    T: Sync

impl<T, const SIZE: usize> Unpin for ArrayIter<T, SIZE> where
    T: Unpin

impl<T, const SIZE: usize> UnwindSafe for ArrayIter<T, SIZE> where
    T: 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> 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.