Trait ByteRefIteratorIntoSharedBuffer

Source
pub trait ByteRefIteratorIntoSharedBuffer {
    // Required method
    fn into_shared_buffer(self) -> Result<SharedBuffer, BufferError>;
}

Required Methods§

Source

fn into_shared_buffer(self) -> Result<SharedBuffer, BufferError>

Collects this Iterator into a SharedBuffer.

§Errors

BufferError is returned if an allocation or reallocation fails.

Implementors§

Source§

impl<'lt, T: Iterator<Item = &'lt u8>> ByteRefIteratorIntoSharedBuffer for T