[][src]Struct phreak_engine::jointest::JoinNodeTest

pub struct JoinNodeTest {
    pub f1: JoinTestField,
    pub condition_number_of_arg2: usize,
    pub f2: JoinTestField,
}

A test compares a field in the current WME against a field from a WME that is x steps back.

A Token chain represents a list of matches that belong together. By taking the parent token, one goes back one step into the chain. Each step may contain a WME. The JoinNodeTest defines which WME to compare against the current WME, and defines which fields in the WME's should be compared against eachother. Note that the current WME is a candidate for a token that would be at the top of the chain. This token would be at step 0. The real top token thus becomes step 1, it's parent becomes step 2, etc.

Fields

f1: JoinTestField

The field in the current WME we would like to compare.

condition_number_of_arg2: usize

Number of steps back towards the root-token in order to find the second WME.

f2: JoinTestField

The field in the second WME to compare against.

Trait Implementations

impl Debug for JoinNodeTest[src]

impl Eq for JoinNodeTest[src]

impl Ord for JoinNodeTest[src]

impl PartialEq<JoinNodeTest> for JoinNodeTest[src]

impl PartialOrd<JoinNodeTest> for JoinNodeTest[src]

impl StructuralEq for JoinNodeTest[src]

impl StructuralPartialEq for JoinNodeTest[src]

Auto Trait Implementations

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.