Trait BufExt
fbthrift
pub trait BufExt: Buf { pub fn reset(self) -> Self; }
pub fn reset(self) -> Self
Reset buffer back to the beginning.
impl BufExt for Cursor<Bytes>