pub struct StackStr<const N: usize> { /* private fields */ }Expand description
A fixed-capacity UTF-8 string of at most N bytes that errors on overflow
(CORE-R109): unlike StackText a write that does not fit returns fmt::Error
and leaves the buffer unchanged, so a caller can fall back to a shorter form
(voyager_journey’s readout fit ladder) instead of silently losing the tail.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<const N: usize> Forget for StackStr<N>
impl<const N: usize> Freeze for StackStr<N>
impl<const N: usize> Move for StackStr<N>
impl<const N: usize> RefUnwindSafe for StackStr<N>
impl<const N: usize> Send for StackStr<N>
impl<const N: usize> Sync for StackStr<N>
impl<const N: usize> Unpin for StackStr<N>
impl<const N: usize> UnsafeUnpin for StackStr<N>
impl<const N: usize> UnwindSafe for StackStr<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