pub struct String<const N: usize>(/* private fields */);Expand description
A UTF-8–encoded, growable string.
When heapless feature is enabled, this is wrapper around heapless::String. Otherwise, this
is a wrapper around alloc::string::String, with logical length capped at N bytes.
Implementations§
Trait Implementations§
impl<const N: usize> Eq for String<N>
Source§impl<const N: usize> Ord for String<N>
impl<const N: usize> Ord for String<N>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<const N: usize> PartialOrd for String<N>
impl<const N: usize> PartialOrd for String<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for String<N>
impl<const N: usize> RefUnwindSafe for String<N>
impl<const N: usize> Send for String<N>
impl<const N: usize> Sync for String<N>
impl<const N: usize> Unpin for String<N>
impl<const N: usize> UnsafeUnpin for String<N>
impl<const N: usize> UnwindSafe for String<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