Struct zero_copy_pads::PaddedColumnBuilder[][src]

pub struct PaddedColumnBuilder<ValueIter, PadBlock, Pad> where
    ValueIter: Iterator,
    ValueIter::Item: Width,
    PadBlock: Display + Copy,
    Pad: Pad<ValueIter::Item, PadBlock> + Copy
{ /* fields omitted */ }

Builder for PaddedColumn.

Implementations

impl<ValueIter: Clone, PadBlock: Clone, Pad: Clone> PaddedColumnBuilder<ValueIter, PadBlock, Pad> where
    ValueIter: Iterator,
    ValueIter::Item: Width,
    PadBlock: Display + Copy,
    Pad: Pad<ValueIter::Item, PadBlock> + Copy
[src]

pub fn values(&mut self, value: ValueIter) -> &mut Self[src]

Values to be padded.

pub fn pad_block(&mut self, value: PadBlock) -> &mut Self[src]

Block of the pad (expected to have width of 1).

pub fn pad(&mut self, value: Pad) -> &mut Self[src]

Where to place the pad.

pub fn build(
    &self
) -> Result<PaddedColumn<ValueIter, PadBlock, Pad>, PaddedColumnBuilderError>
[src]

Builds a new PaddedColumn.

Errors

If a required field has not been initialized.

Trait Implementations

impl<ValueIter: Clone, PadBlock: Clone, Pad: Clone> Clone for PaddedColumnBuilder<ValueIter, PadBlock, Pad> where
    ValueIter: Iterator,
    ValueIter::Item: Width,
    PadBlock: Display + Copy,
    Pad: Pad<ValueIter::Item, PadBlock> + Copy
[src]

impl<ValueIter: Clone, PadBlock: Clone, Pad: Clone> Default for PaddedColumnBuilder<ValueIter, PadBlock, Pad> where
    ValueIter: Iterator,
    ValueIter::Item: Width,
    PadBlock: Display + Copy,
    Pad: Pad<ValueIter::Item, PadBlock> + Copy
[src]

Auto Trait Implementations

impl<ValueIter, PadBlock, Pad> RefUnwindSafe for PaddedColumnBuilder<ValueIter, PadBlock, Pad> where
    Pad: RefUnwindSafe,
    PadBlock: RefUnwindSafe,
    ValueIter: RefUnwindSafe

impl<ValueIter, PadBlock, Pad> Send for PaddedColumnBuilder<ValueIter, PadBlock, Pad> where
    Pad: Send,
    PadBlock: Send,
    ValueIter: Send

impl<ValueIter, PadBlock, Pad> Sync for PaddedColumnBuilder<ValueIter, PadBlock, Pad> where
    Pad: Sync,
    PadBlock: Sync,
    ValueIter: Sync

impl<ValueIter, PadBlock, Pad> Unpin for PaddedColumnBuilder<ValueIter, PadBlock, Pad> where
    Pad: Unpin,
    PadBlock: Unpin,
    ValueIter: Unpin

impl<ValueIter, PadBlock, Pad> UnwindSafe for PaddedColumnBuilder<ValueIter, PadBlock, Pad> where
    Pad: UnwindSafe,
    PadBlock: UnwindSafe,
    ValueIter: 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<X> Pipe for X

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.