StackSplit

Trait StackSplit 

Source
pub trait StackSplit<B: MutRB> {
    // Required methods
    fn split(&mut self) -> (ProdIter<'_, B>, ConsIter<'_, B, false>);
    fn split_mut(
        &mut self,
    ) -> (ProdIter<'_, B>, WorkIter<'_, B>, ConsIter<'_, B, true>);
}
Available on non-crate feature vmem only.
Expand description

Trait needed to call split method on a stack-allocated buffer.

Required Methods§

Source

fn split(&mut self) -> (ProdIter<'_, B>, ConsIter<'_, B, false>)

Borrows the buffer, yielding two iterators. See:

Source

fn split_mut( &mut self, ) -> (ProdIter<'_, B>, WorkIter<'_, B>, ConsIter<'_, B, true>)

Borrows the buffer, yielding three iterators. See:

Implementors§