pub struct NullTerminatedFormatter<'a> { /* private fields */ }Expand description
A mutable reference to a byte buffer where a string can be written into.
The buffer will be automatically null terminated after the last written character.
§Invariants
- The first byte of
bufferis always zero. - The length of
bufferis at least 1.
Implementations§
Source§impl<'a> NullTerminatedFormatter<'a>
impl<'a> NullTerminatedFormatter<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for NullTerminatedFormatter<'a>
impl<'a> RefUnwindSafe for NullTerminatedFormatter<'a>
impl<'a> Send for NullTerminatedFormatter<'a>
impl<'a> Sync for NullTerminatedFormatter<'a>
impl<'a> Unpin for NullTerminatedFormatter<'a>
impl<'a> UnsafeUnpin for NullTerminatedFormatter<'a>
impl<'a> !UnwindSafe for NullTerminatedFormatter<'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
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read more