pub struct ConstStr { /* private fields */ }
Expand description
A string that is stored in a constant sized buffer that can be serialized and deserialized at compile time
Implementations§
Source§impl ConstStr
impl ConstStr
Sourcepub const fn split_at(self, index: usize) -> (Self, Self)
pub const fn split_at(self, index: usize) -> (Self, Self)
Split the string at a byte index. The byte index must be a char boundary
Sourcepub const fn rsplit_once(&self, char: char) -> Option<(Self, Self)>
pub const fn rsplit_once(&self, char: char) -> Option<(Self, Self)>
Split the string at the last occurrence of a character
Sourcepub const fn split_once(&self, char: char) -> Option<(Self, Self)>
pub const fn split_once(&self, char: char) -> Option<(Self, Self)>
Split the string at the first occurrence of a character
Trait Implementations§
Source§impl PartialOrd for ConstStr
impl PartialOrd for ConstStr
Source§impl SerializeConst for ConstStr
impl SerializeConst for ConstStr
impl Copy for ConstStr
impl StructuralPartialEq for ConstStr
Auto Trait Implementations§
impl Freeze for ConstStr
impl RefUnwindSafe for ConstStr
impl Send for ConstStr
impl Sync for ConstStr
impl Unpin for ConstStr
impl UnwindSafe for ConstStr
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