pub struct NatLexOrderedString(pub String);Expand description
An owning string wrapper that provides natural-lexicographic ordering (nat_lex_cmp).
Equality (Eq, PartialEq) and ordering (Ord, PartialOrd) are based on nat_lex_cmp.
Hashing is based on the underlying string data.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for NatLexOrderedString
impl Clone for NatLexOrderedString
Source§fn clone(&self) -> NatLexOrderedString
fn clone(&self) -> NatLexOrderedString
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NatLexOrderedString
impl Debug for NatLexOrderedString
Source§impl From<&str> for NatLexOrderedString
impl From<&str> for NatLexOrderedString
Source§impl From<NatLexOrderedString> for String
impl From<NatLexOrderedString> for String
Source§fn from(value: NatLexOrderedString) -> Self
fn from(value: NatLexOrderedString) -> Self
Converts to this type from the input type.
Source§impl From<String> for NatLexOrderedString
impl From<String> for NatLexOrderedString
Source§impl Hash for NatLexOrderedString
impl Hash for NatLexOrderedString
Source§impl Ord for NatLexOrderedString
impl Ord for NatLexOrderedString
Source§impl PartialEq for NatLexOrderedString
impl PartialEq for NatLexOrderedString
Source§impl PartialOrd for NatLexOrderedString
impl PartialOrd for NatLexOrderedString
impl Eq for NatLexOrderedString
Auto Trait Implementations§
impl Freeze for NatLexOrderedString
impl RefUnwindSafe for NatLexOrderedString
impl Send for NatLexOrderedString
impl Sync for NatLexOrderedString
impl Unpin for NatLexOrderedString
impl UnwindSafe for NatLexOrderedString
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