[][src]Enum moore_svlog::lexer::Lit

pub enum Lit {
    Str(Name),
    BasedInteger(Option<Name>, boolcharName),
    UnbasedUnsized(char),
    Number(NameOption<Name>),
    Time(NameOption<Name>, TimeUnit),
}

Abstract literals such as strings.

Variants

Str(Name)
BasedInteger(Option<Name>, boolcharName)
UnbasedUnsized(char)

One of '0, '1, 'x, and 'z.

Number(NameOption<Name>)

A number given as integer and optional fractional part.

A time literal given as integer part, fractional part, and unit.

Trait Implementations

impl Clone for Lit[src]

impl Copy for Lit[src]

impl Debug for Lit[src]

impl Decodable for Lit[src]

impl Encodable for Lit[src]

impl Eq for Lit[src]

impl Hash for Lit[src]

impl PartialEq<Lit> for Lit[src]

impl StructuralEq for Lit[src]

impl StructuralPartialEq for Lit[src]

Auto Trait Implementations

impl RefUnwindSafe for Lit

impl Send for Lit

impl Sync for Lit

impl Unpin for Lit

impl UnwindSafe for Lit

Blanket Implementations

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

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> 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.