Skip to main content

ByteSliceIteratorIntoSharedBuffer

Trait ByteSliceIteratorIntoSharedBuffer 

Source
pub trait ByteSliceIteratorIntoSharedBuffer {
    // 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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<Ts: AsRef<[u8]>, Ti: Iterator<Item = Ts>> ByteSliceIteratorIntoSharedBuffer for Ti