pub struct NowString<Size, SizeType> { /* private fields */ }Implementations§
Source§impl<Size, SizeType> NowString<Size, SizeType>
impl<Size, SizeType> NowString<Size, SizeType>
pub fn new_empty() -> Self
Sourcepub unsafe fn from_string_unchecked(s: String) -> Self
pub unsafe fn from_string_unchecked(s: String) -> Self
§Safety
Provided string len must not exceed NowStringSize::SIZE
Sourcepub unsafe fn from_str_unchecked(s: &str) -> Self
pub unsafe fn from_str_unchecked(s: &str) -> Self
§Safety
Provided string slice len must not exceed NowStringSize::SIZE
pub fn from_string(string: String) -> Result<Self>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn as_str(&self) -> &str
Trait Implementations§
Source§impl<Size, SizeType> Encode for NowString<Size, SizeType>where
SizeType: Encode + FromPrimitive,
impl<Size, SizeType> Encode for NowString<Size, SizeType>where
SizeType: Encode + FromPrimitive,
Source§impl<Size, SizeType> FromStr for NowString<Size, SizeType>where
Size: NowStringSize,
impl<Size, SizeType> FromStr for NowString<Size, SizeType>where
Size: NowStringSize,
impl<Size: Eq, SizeType: Eq> Eq for NowString<Size, SizeType>
impl<Size, SizeType> StructuralPartialEq for NowString<Size, SizeType>
Auto Trait Implementations§
impl<Size, SizeType> Freeze for NowString<Size, SizeType>
impl<Size, SizeType> RefUnwindSafe for NowString<Size, SizeType>where
Size: RefUnwindSafe,
SizeType: RefUnwindSafe,
impl<Size, SizeType> Send for NowString<Size, SizeType>
impl<Size, SizeType> Sync for NowString<Size, SizeType>
impl<Size, SizeType> Unpin for NowString<Size, SizeType>
impl<Size, SizeType> UnwindSafe for NowString<Size, SizeType>where
Size: UnwindSafe,
SizeType: UnwindSafe,
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