Enum moore_svlog_syntax::token::Lit
[−]
[src]
pub enum Lit {
Str(Name),
Decimal(Name),
UnsignedInteger(Name),
BasedInteger(Option<Name>, bool, char, Name),
UnbasedUnsized(char),
Real(Name),
Time(Name),
}Abstract literals such as strings.
Variants
Str(Name)Decimal(Name)UnsignedInteger(Name)An unsigned number.
BasedInteger(Option<Name>, bool, char, Name)UnbasedUnsized(char)Real(Name)Time(Name)
Trait Implementations
impl Clone for Lit[src]
fn clone(&self) -> Lit[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for Lit[src]
impl PartialEq for Lit[src]
fn eq(&self, __arg_0: &Lit) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Lit) -> bool[src]
This method tests for !=.
impl Eq for Lit[src]
impl Hash for Lit[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for Lit[src]
impl Encodable for Lit[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>[src]
Serialize a value using an Encoder.