Skip to main content

ByteSliceIteratorIntoBuffer

Trait ByteSliceIteratorIntoBuffer 

Source
pub trait ByteSliceIteratorIntoBuffer {
    // Required method
    fn into_buffer(self) -> Result<Buffer, BufferError>;
}

Required Methods§

Source

fn into_buffer(self) -> Result<Buffer, BufferError>

Collects this Iterator into a Buffer.

§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>> ByteSliceIteratorIntoBuffer for Ti