Enum prolog_parser::ast::Constant[][src]

pub enum Constant {
    Atom(ClauseName),
    Char(char),
    Number(Number),
    String(StringList),
    Usize(usize),
    EmptyList,
}

Variants

Methods

impl Constant
[src]

Trait Implementations

impl Clone for Constant
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for Constant
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Display for Constant
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Constant
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Constant
[src]

Auto Trait Implementations

impl !Send for Constant

impl !Sync for Constant