Enum ai_kit::datum::Datum [] [src]

pub enum Datum {
    Nil,
    String(String),
    Int(i64),
    Float(f64),
    Variable(String),
    Vector(Vec<Datum>),
}

Variants

Methods

impl Datum
[src]

Trait Implementations

impl Clone for Datum
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Datum
[src]

Formats the value using the given formatter.

impl PartialOrd for Datum
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Default for Datum
[src]

Returns the "default value" for a type. Read more

impl PartialEq for Datum
[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 Datum
[src]

impl Ord for Datum
[src]

This method returns an Ordering between self and other. Read more

impl BindingsValue for Datum
[src]

Construct a BindingsValue variable using the specified string as it's name

Extract the name of this BindingsValue variable (if it is a variable)

impl ConstraintValue for Datum
[src]

Attempt to convert this value to a float

Construct a ConstraintValue from a float

impl Unify<Datum> for Datum
[src]

Check if this structure can be unified with another of the same type.

Given some bindings, construct a new instance with any variables replaced by their values

Return all variables in this tructure

Rename any variables in this structure with another variable name

Return a 'nil' sentinel value unique to this type of structure

impl Display for Datum
[src]

Formats the value using the given formatter. Read more