Trait bytes::IntoBuf [] [src]

pub trait IntoBuf {
    type Buf: Buf;
    fn into_buf(self) -> Self::Buf;
}

Conversion into a Buf

Usually, IntoBuf is implemented on references of types and not directly on the types themselves. For example, IntoBuf is implemented for &'a Vec<u8> and not Vec<u8> directly.

Associated Types

The Buf type that self is being converted into

Required Methods

Creates a Buf from a value.

Implementors