[][src]Struct phreak_facts::Facts

pub struct Facts { /* fields omitted */ }

Facts contains grouped information around a single class

Example: A Car can have multiple pieces of information associated: The color is red. It has 4 wheels, and 3 doors. The brand is Ferrari

This information is stored in a standardized way for the phreak algorithm, in order to efficiently match conditions against the known facts.

Methods

impl Facts[src]

pub fn get_name(&self) -> &String[src]

pub fn iter_attrs(&self) -> Iter<Rc<FactCore>>[src]

Trait Implementations

impl Clone for Facts[src]

impl Debug for Facts[src]

impl<'de> Deserialize<'de> for Facts[src]

impl Hash for Facts[src]

impl PartialEq<Facts> for Facts[src]

impl Serialize for Facts[src]

Auto Trait Implementations

impl !RefUnwindSafe for Facts

impl !Send for Facts

impl !Sync for Facts

impl Unpin for Facts

impl UnwindSafe for Facts

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.