pub struct NanStr<'a>(/* private fields */);
Expand description
Simple wrapper type for a &str
to make sure its length is less than the maximum for
a nan symbol (64 bytes).
Implementations§
Trait Implementations§
Source§impl<'a> Ord for NanStr<'a>
impl<'a> Ord for NanStr<'a>
1.21.0 · 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<'a> PartialOrd for NanStr<'a>
impl<'a> PartialOrd for NanStr<'a>
impl<'a> Eq for NanStr<'a>
impl<'a> StructuralPartialEq for NanStr<'a>
Auto Trait Implementations§
impl<'a> Freeze for NanStr<'a>
impl<'a> RefUnwindSafe for NanStr<'a>
impl<'a> Send for NanStr<'a>
impl<'a> Sync for NanStr<'a>
impl<'a> Unpin for NanStr<'a>
impl<'a> UnwindSafe for NanStr<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> ParseFormatted for S
impl<S> ParseFormatted for S
Source§fn parse_formatted<F, N>(&self, format: &F) -> Result<N, Error>where
F: Format,
N: FromFormattedStr,
fn parse_formatted<F, N>(&self, format: &F) -> Result<N, Error>where
F: Format,
N: FromFormattedStr,
Converts
self
(typically a formatted string) into a number (see Examples above).