pub struct InlinedString<const CAP: usize>(/* private fields */);
Expand description
An inlined string. Unline String
, this type is allocated on the stack
or inlined in a struct instead of the heap.
The internal buffer is a InlinedVec<u8, CAP>
, where CAP
is the capacity
of the string. It’s guaranteed to be a valid UTF-8 string.
Implementations§
Trait Implementations§
Source§impl<const CAP: usize> Debug for InlinedString<CAP>
impl<const CAP: usize> Debug for InlinedString<CAP>
Source§impl<const CAP: usize> Default for InlinedString<CAP>
impl<const CAP: usize> Default for InlinedString<CAP>
Source§impl<const CAP: usize> Display for InlinedString<CAP>
impl<const CAP: usize> Display for InlinedString<CAP>
Auto Trait Implementations§
impl<const CAP: usize> Freeze for InlinedString<CAP>
impl<const CAP: usize> RefUnwindSafe for InlinedString<CAP>
impl<const CAP: usize> Send for InlinedString<CAP>
impl<const CAP: usize> Sync for InlinedString<CAP>
impl<const CAP: usize> Unpin for InlinedString<CAP>
impl<const CAP: usize> UnwindSafe for InlinedString<CAP>
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