Trait fbthrift_git::BufExt[][src]

pub trait BufExt: Buf {
    fn reset(self) -> Self;
fn copy_to_bytes(&mut self, len: usize) -> Bytes; }

Required methods

fn reset(self) -> Self[src]

Reset buffer back to the beginning.

fn copy_to_bytes(&mut self, len: usize) -> Bytes[src]

Loading content...

Implementations on Foreign Types

impl BufExt for Cursor<Bytes>[src]

impl<T: AsRef<[u8]> + ?Sized> BufExt for Cursor<&T>[src]

impl<T: BufExt, U: BufExt> BufExt for Chain<T, U>[src]

Loading content...

Implementors

Loading content...