pub struct StackText<const N: usize> { /* private fields */ }Expand description
A fixed-capacity UTF-8 string of at most N bytes, living inline (CORE-R49).
Writes that do not fit are truncated silently on a char boundary, and once a write has been truncated every later write is dropped, so the contents are always a prefix of everything written. A HUD label that overflows loses its tail, never its validity.
Implementations§
Trait Implementations§
Source§impl<const N: usize> Write for StackText<N>
impl<const N: usize> Write for StackText<N>
Auto Trait Implementations§
impl<const N: usize> Forget for StackText<N>
impl<const N: usize> Freeze for StackText<N>
impl<const N: usize> Move for StackText<N>
impl<const N: usize> RefUnwindSafe for StackText<N>
impl<const N: usize> Send for StackText<N>
impl<const N: usize> Sync for StackText<N>
impl<const N: usize> Unpin for StackText<N>
impl<const N: usize> UnsafeUnpin for StackText<N>
impl<const N: usize> UnwindSafe for StackText<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