pub struct ByteMutWriter<'a> { /* private fields */ }
Expand description
A fmt::Write for bytes.
Implementations§
Source§impl<'a> ByteMutWriter<'a>
impl<'a> ByteMutWriter<'a>
pub fn new(buf: &'a mut [u8]) -> Self
pub fn as_str(&self) -> &str
pub fn capacity(&self) -> usize
pub fn clear(&mut self)
pub fn len(&self) -> usize
pub fn empty(&self) -> bool
pub fn full(&self) -> bool
pub fn write_byte(&mut self, b: u8)
pub fn write_char(&mut self, c: char)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ByteMutWriter<'a>
impl<'a> RefUnwindSafe for ByteMutWriter<'a>
impl<'a> Send for ByteMutWriter<'a>
impl<'a> Sync for ByteMutWriter<'a>
impl<'a> Unpin for ByteMutWriter<'a>
impl<'a> !UnwindSafe for ByteMutWriter<'a>
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