pub trait CopyFromBuf: Sized {
    fn copy_from_buf<B: BufExt>(buffer: &mut B, len: usize) -> Self;

    fn from_vec(vec: Vec<u8>) -> Self { ... }
}
Expand description

Trait for copying from the Thrift buffer. Special implementations may do this without actually copying.

Required Methods§

Provided Methods§

Implementors§