pub struct RollBuf<R> { /* private fields */ }
Implementations§
Source§impl<R: Read> RollBuf<R>
impl<R: Read> RollBuf<R>
pub fn new(inner: R) -> RollBuf<R>
pub fn with_capacity(cap: usize, inner: R) -> RollBuf<R>
pub fn capacity(&self) -> usize
pub fn end_position(&self) -> usize
pub fn fill_buf(&mut self) -> Result<bool, Box<dyn Error>>
pub fn consume(&mut self, n: usize)
pub fn roll(&mut self)
pub fn contents(&self) -> &[u8] ⓘ
pub fn is_full(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for RollBuf<R>where
R: Freeze,
impl<R> RefUnwindSafe for RollBuf<R>where
R: RefUnwindSafe,
impl<R> Send for RollBuf<R>where
R: Send,
impl<R> Sync for RollBuf<R>where
R: Sync,
impl<R> Unpin for RollBuf<R>where
R: Unpin,
impl<R> UnwindSafe for RollBuf<R>where
R: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more