Struct holmes::engine::types::Fact [] [src]

pub struct Fact {
    pub pred_name: String,
    pub args: Vec<Value>,
}

A Fact is a particular filling of a Predicate's slots such that it is considered true.

Following the Predicate example,

foo(3, "argblarg")

would be constructed as

use holmes::pg::dyn::values::ToValue;
use holmes::engine::types::Fact;
Fact {
  pred_name : "foo".to_string(),
  args : vec![3.to_value(), "argblarg".to_value()]
};

Fields

Predicate name

Slot values which make the predicate true

Trait Implementations

impl PartialEq for Fact
[src]

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

This method tests for !=.

impl Clone for Fact
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Fact
[src]

Formats the value using the given formatter.

impl Hash for Fact
[src]

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

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

impl Eq for Fact
[src]