pub struct InlineStr<const N: usize> { /* private fields */ }Expand description
Short inline string.
Used for error excerpts. Input longer than N bytes is truncated on a
character boundary with an ellipsis.
Implementations§
Trait Implementations§
impl<const N: usize> Copy for InlineStr<N>
impl<const N: usize> Eq for InlineStr<N>
impl<const N: usize> StructuralPartialEq for InlineStr<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for InlineStr<N>
impl<const N: usize> RefUnwindSafe for InlineStr<N>
impl<const N: usize> Send for InlineStr<N>
impl<const N: usize> Sync for InlineStr<N>
impl<const N: usize> Unpin for InlineStr<N>
impl<const N: usize> UnsafeUnpin for InlineStr<N>
impl<const N: usize> UnwindSafe for InlineStr<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