pub struct String<const N: usize> { /* private fields */ }
Implementations§
source§impl<const N: usize> String<N>
impl<const N: usize> String<N>
pub fn new() -> String<N>
pub fn as_bytes(&self) -> [u8; N]
pub fn as_str(&self) -> Result<&str, Utf8Error>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn to_str(&self) -> &str
pub fn push(&mut self, ch: char) -> Result<usize, Error>
pub fn append(&mut self, s: &str) -> Result<usize, Error>
pub fn push_byte(&mut self, b: u8) -> Result<(), Error>
Trait Implementations§
source§impl<const N: usize> PartialEq for String<N>
impl<const N: usize> PartialEq for String<N>
source§impl<const N: usize> Write for String<N>
impl<const N: usize> Write for String<N>
impl<const N: usize> Copy for String<N>
impl<const N: usize> Eq 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> 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