Trait iterext::Pad[][src]

pub trait Pad<'a, T> where
    T: Copy
{ fn pad(self, padding: T, group_size: usize) -> Padded<'a, T>; }

Required methods

fn pad(self, padding: T, group_size: usize) -> Padded<'a, T>[src]

Ensure that a stream has a length of a multiple of group_size.

If iter ends at a length which is not a multiple of group_size, instances of padding are copied into the stream until the length is correct.

This is a fused iterator.

Loading content...

Implementors

impl<'a, I, T> Pad<'a, T> for I where
    I: IntoIterator<Item = T>,
    <I as IntoIterator>::IntoIter: 'a,
    T: 'a + Copy
[src]

Loading content...