[−][src]Struct simble::Lexical
Symbol that compares lexicographically and consistently with the C locale. Interconvertible
with Printable
that can be borrowed as &str
or &[u8]
.
Methods
impl Lexical
[src]
pub fn len(self) -> usize
[src]
Return the length of this symbol.
pub fn into_bytes(self) -> [u8; 8]
[src]
Convert a Lexical into a byte array. The result is right-padded with NUL bytes.
ⓘImportant traits for Bytespub fn bytes(self) -> Bytes
[src]
ⓘImportant traits for Bytes
Obtain an iterator over the bytes.
pub fn to_printable(self) -> Printable
[src]
Convert to a symbol that can be borrowed as a &str.
Trait Implementations
impl From<Lexical> for Printable
[src]
impl From<Printable> for Lexical
[src]
impl Display for Lexical
[src]
impl Debug for Lexical
[src]
impl PartialEq<Lexical> for Lexical
[src]
impl Eq for Lexical
[src]
impl Ord for Lexical
[src]
fn cmp(&self, other: &Lexical) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialOrd<Lexical> for Lexical
[src]
fn partial_cmp(&self, other: &Lexical) -> Option<Ordering>
[src]
fn lt(&self, other: &Lexical) -> bool
[src]
fn le(&self, other: &Lexical) -> bool
[src]
fn gt(&self, other: &Lexical) -> bool
[src]
fn ge(&self, other: &Lexical) -> bool
[src]
impl FromStr for Lexical
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Error>
[src]
impl Hash for Lexical
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Copy for Lexical
[src]
impl StructuralPartialEq for Lexical
[src]
impl StructuralEq for Lexical
[src]
impl Clone for Lexical
[src]
fn clone(&self) -> Lexical
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,