pub struct Lexical(/* private fields */);
Expand description
Symbol that compares lexicographically and consistently with the C locale. Interconvertible
with Printable
that can be borrowed as &[str
] or &[u8]
.
Implementations§
Source§impl Lexical
impl Lexical
Sourcepub fn into_bytes(self) -> [u8; 8]
pub fn into_bytes(self) -> [u8; 8]
Convert a Lexical into a byte array. The result is right-padded with NUL bytes.
Sourcepub fn to_printable(self) -> Printable
pub fn to_printable(self) -> Printable
Convert to a symbol that can be borrowed as a &str.
Trait Implementations§
Source§impl Ord for Lexical
impl Ord for Lexical
Source§impl PartialOrd for Lexical
impl PartialOrd for Lexical
impl Copy for Lexical
impl Eq for Lexical
impl StructuralPartialEq for Lexical
Auto Trait Implementations§
impl Freeze for Lexical
impl RefUnwindSafe for Lexical
impl Send for Lexical
impl Sync for Lexical
impl Unpin for Lexical
impl UnwindSafe for Lexical
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