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

pub enum Constant {
    Atom(ClauseNameOption<SharedOpDesc>),
    Char(char),
    EmptyList,
    Fixnum(isize),
    Integer(Rc<Integer>),
    Rational(Rc<Rational>),
    Float(OrderedFloat<f64>),
    String(Rc<String>),
    Usize(usize),
}

Variants

Char(char)
EmptyList
Fixnum(isize)
Integer(Rc<Integer>)
Rational(Rc<Rational>)
String(Rc<String>)
Usize(usize)

Implementations

impl Constant[src]

pub fn to_atom(self) -> Option<ClauseName>[src]

Trait Implementations

impl Clone for Constant[src]

impl Debug for Constant[src]

impl Display for Constant[src]

impl Eq for Constant[src]

impl Hash for Constant[src]

impl PartialEq<Constant> for Constant[src]

Auto Trait Implementations

impl !RefUnwindSafe for Constant

impl !Send for Constant

impl !Sync for Constant

impl Unpin for Constant

impl !UnwindSafe for Constant

Blanket Implementations

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

impl<T> Az for T[src]

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

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

impl<T> CheckedAs for T[src]

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

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

impl<T> OverflowingAs for T[src]

impl<T> SaturatingAs for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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> 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> WrappingAs for T[src]