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> !UnwindSafe for NullTerminatedFormatter<'a>
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>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
impl<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
Source§fn into_safe_cast(self) -> T
fn into_safe_cast(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.Source§impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
Source§fn into_safe_cast_arch(self) -> T
fn into_safe_cast_arch(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.