Enum evaltrees::ast::Literal [−][src]
pub enum Literal { False, Int(usize), Nil, True, }
A literal value.
Variants
False
The false boolean value.
Int(usize)
An (unsigned) integer.
Nil
An empty list.
True
The true boolean value.
Trait Implementations
impl Clone for Literal
[src]
impl Clone for Literal
fn clone(&self) -> Literal
[src]
fn clone(&self) -> Literal
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Literal
[src]
impl Copy for Literal
impl Debug for Literal
[src]
impl Debug for Literal
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Literal
[src]
impl Display for Literal
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Literal
[src]
impl PartialEq for Literal