pub struct Buffer<S: Scanner> { /* private fields */ }Expand description
Reusable metadata storage that retains classification with its bytes.
Implementations§
Source§impl<S: Scanner> Buffer<S>
impl<S: Scanner> Buffer<S>
pub const fn new() -> Self
pub fn clear(&mut self)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn copy_prefix(&mut self, prefix: Prefix<'_, S>) -> Result<(), Error>
pub fn writer(&mut self, limit: Option<usize>) -> Writer<'_, S>
Trait Implementations§
Auto Trait Implementations§
impl<S> Forget for Buffer<S>
impl<S> Freeze for Buffer<S>
impl<S> RefUnwindSafe for Buffer<S>
impl<S> Send for Buffer<S>
impl<S> Sync for Buffer<S>
impl<S> Unpin for Buffer<S>
impl<S> UnsafeUnpin for Buffer<S>
impl<S> UnwindSafe for Buffer<S>
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