Struct zero_copy_pads::PaddedColumnIter[][src]

pub struct PaddedColumnIter<Value, PadBlock = char, Pad = Alignment> where
    Value: Width,
    PadBlock: Display + Copy,
    Pad: Pad<Value, PadBlock> + Copy
{ /* fields omitted */ }

Iterator created by calling into_iter on PaddedColumn.

Required features: std

Implementations

impl<Value, PadBlock, Pad> PaddedColumnIter<Value, PadBlock, Pad> where
    Value: Width,
    PadBlock: Display + Copy,
    Pad: Pad<Value, PadBlock> + Copy
[src]

pub fn new(pad_block: PadBlock, pad: Pad) -> Self[src]

Initialize an empty iterator.

pub fn push_back(&mut self, value: Value)[src]

Add a value to the column. If width of the new value is greater than the current total_width, set it as the new total_width.

pub fn pad_block(&self) -> PadBlock[src]

Pad block that was used in the construction of PaddedColumn.

pub fn pad(&self) -> Pad[src]

Padding method that was used in the construction of PaddedColumn.

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

Maximum width of all items that were passed to PaddedColumn.

Trait Implementations

impl<Value: Clone, PadBlock: Clone, Pad: Clone> Clone for PaddedColumnIter<Value, PadBlock, Pad> where
    Value: Width,
    PadBlock: Display + Copy,
    Pad: Pad<Value, PadBlock> + Copy
[src]

impl<Value: Debug, PadBlock: Debug, Pad: Debug> Debug for PaddedColumnIter<Value, PadBlock, Pad> where
    Value: Width,
    PadBlock: Display + Copy,
    Pad: Pad<Value, PadBlock> + Copy
[src]

impl<Value, PadBlock, Pad> ExactSizeIterator for PaddedColumnIter<Value, PadBlock, Pad> where
    Value: Width,
    PadBlock: Display + Copy,
    Pad: Pad<Value, PadBlock> + Copy
[src]

impl<Value, PadBlock, Pad> Extend<Value> for PaddedColumnIter<Value, PadBlock, Pad> where
    Value: Width,
    PadBlock: Display + Copy,
    Pad: Pad<Value, PadBlock> + Copy
[src]

impl<Value, PadBlock, Pad> Iterator for PaddedColumnIter<Value, PadBlock, Pad> where
    Value: Width,
    PadBlock: Display + Copy,
    Pad: Pad<Value, PadBlock> + Copy
[src]

type Item = PaddedValue<Value, PadBlock, PanicOnExcess, Pad>

The type of the elements being iterated over.

Auto Trait Implementations

impl<Value, PadBlock, Pad> RefUnwindSafe for PaddedColumnIter<Value, PadBlock, Pad> where
    Pad: RefUnwindSafe,
    PadBlock: RefUnwindSafe,
    Value: RefUnwindSafe

impl<Value, PadBlock, Pad> Send for PaddedColumnIter<Value, PadBlock, Pad> where
    Pad: Send,
    PadBlock: Send,
    Value: Send

impl<Value, PadBlock, Pad> Sync for PaddedColumnIter<Value, PadBlock, Pad> where
    Pad: Sync,
    PadBlock: Sync,
    Value: Sync

impl<Value, PadBlock, Pad> Unpin for PaddedColumnIter<Value, PadBlock, Pad> where
    Pad: Unpin,
    PadBlock: Unpin

impl<Value, PadBlock, Pad> UnwindSafe for PaddedColumnIter<Value, PadBlock, Pad> where
    Pad: UnwindSafe,
    PadBlock: UnwindSafe,
    Value: RefUnwindSafe + 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> Itertools for T where
    T: Iterator + ?Sized
[src]

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.