pub struct FixedText<const N: usize> { /* private fields */ }Expand description
A C string of at most N - 1 bytes written with fmt::Write, without
allocating: the panic handler’s message, which must not fail when the
heap is what ran out. Text that doesn’t fit is cut at a character
boundary; NULs are left out. N is at least 1.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<const N: usize> Freeze for FixedText<N>
impl<const N: usize> RefUnwindSafe for FixedText<N>
impl<const N: usize> Send for FixedText<N>
impl<const N: usize> Sync for FixedText<N>
impl<const N: usize> Unpin for FixedText<N>
impl<const N: usize> UnsafeUnpin for FixedText<N>
impl<const N: usize> UnwindSafe for FixedText<N>
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