pub struct WordBuffer { /* private fields */ }Expand description
A fast Buffer that operates on Words.
Trait Implementations§
Source§impl BufferTrait for WordBuffer
impl BufferTrait for WordBuffer
type Writer = WordWriter
type Reader<'a> = WordReader<'a>
type Context = WordContext
fn capacity(&self) -> usize
fn with_capacity(cap: usize) -> Self
Source§fn start_write(&mut self) -> Self::Writer
fn start_write(&mut self) -> Self::Writer
Clears the buffer.
fn start_read<'a, 'b>(
&'a mut self,
bytes: &'b [u8],
) -> (Self::Reader<'a>, Self::Context)where
'a: 'b,
Source§impl Debug for WordBuffer
impl Debug for WordBuffer
Source§impl Default for WordBuffer
impl Default for WordBuffer
Source§fn default() -> WordBuffer
fn default() -> WordBuffer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WordBuffer
impl RefUnwindSafe for WordBuffer
impl Send for WordBuffer
impl Sync for WordBuffer
impl Unpin for WordBuffer
impl UnwindSafe for WordBuffer
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