[][src]Struct simble::Lexical

pub struct 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 Bytes
pub fn bytes(self) -> Bytes[src]

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]

impl PartialOrd<Lexical> for Lexical[src]

impl FromStr for Lexical[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for Lexical[src]

impl Copy for Lexical[src]

impl StructuralPartialEq for Lexical[src]

impl StructuralEq for Lexical[src]

impl Clone for Lexical[src]

Auto Trait Implementations

impl Unpin for Lexical

impl Send for Lexical

impl Sync for Lexical

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]