[][src]Struct throne::Context

pub struct Context {
    pub core: Core,
    pub string_cache: StringCache,
}

Fields

core: Corestring_cache: StringCache

Methods

impl Context[src]

pub fn from_text(text: &str) -> Self[src]

pub fn extend_state_from_context(&mut self, other: &Context)[src]

pub fn str_to_atom(&mut self, text: &str) -> Atom[src]

pub fn str_to_existing_atom(&self, text: &str) -> Option<Atom>[src]

pub fn atom_to_str(&self, atom: Atom) -> &str[src]

pub fn atom_to_number(&self, atom: Atom) -> Option<i32>[src]

pub fn with_test_rng(self) -> Context[src]

pub fn append_state(&mut self, text: &str)[src]

pub fn find_matching_rules<F>(&self, side_input: F) -> Vec<Rule> where
    F: SideInput, 
[src]

pub fn update<F>(&mut self, side_input: F) where
    F: SideInput, 
[src]

pub fn execute_rule(&mut self, rule: &Rule)[src]

pub fn print(&self)[src]

pub fn find_phrase<'a>(&'a self, a1: Option<&Atom>) -> Option<&'a [Token]>[src]

pub fn find_phrase2<'a>(
    &'a self,
    a1: Option<&Atom>,
    a2: Option<&Atom>
) -> Option<&'a [Token]>
[src]

pub fn find_phrase3<'a>(
    &'a self,
    a1: Option<&Atom>,
    a2: Option<&Atom>,
    a3: Option<&Atom>
) -> Option<&'a [Token]>
[src]

pub fn find_phrase4<'a>(
    &'a self,
    a1: Option<&Atom>,
    a2: Option<&Atom>,
    a3: Option<&Atom>,
    a4: Option<&Atom>
) -> Option<&'a [Token]>
[src]

pub fn find_phrase5<'a>(
    &'a self,
    a1: Option<&Atom>,
    a2: Option<&Atom>,
    a3: Option<&Atom>,
    a4: Option<&Atom>,
    a5: Option<&Atom>
) -> Option<&'a [Token]>
[src]

pub fn find_phrases<'a>(&'a self, a1: Option<&Atom>) -> Vec<&'a [Token]>[src]

pub fn find_phrases2<'a>(
    &'a self,
    a1: Option<&Atom>,
    a2: Option<&Atom>
) -> Vec<&'a [Token]>
[src]

pub fn find_phrases3<'a>(
    &'a self,
    a1: Option<&Atom>,
    a2: Option<&Atom>,
    a3: Option<&Atom>
) -> Vec<&'a [Token]>
[src]

pub fn find_phrases4<'a>(
    &'a self,
    a1: Option<&Atom>,
    a2: Option<&Atom>,
    a3: Option<&Atom>,
    a4: Option<&Atom>
) -> Vec<&'a [Token]>
[src]

pub fn find_phrases5<'a>(
    &'a self,
    a1: Option<&Atom>,
    a2: Option<&Atom>,
    a3: Option<&Atom>,
    a4: Option<&Atom>,
    a5: Option<&Atom>
) -> Vec<&'a [Token]>
[src]

pub fn find_phrases_exactly1<'a>(
    &'a self,
    a1: Option<&Atom>
) -> Vec<&'a [Token]>
[src]

pub fn find_phrases_exactly2<'a>(
    &'a self,
    a1: Option<&Atom>,
    a2: Option<&Atom>
) -> Vec<&'a [Token]>
[src]

pub fn find_phrases_exactly3<'a>(
    &'a self,
    a1: Option<&Atom>,
    a2: Option<&Atom>,
    a3: Option<&Atom>
) -> Vec<&'a [Token]>
[src]

pub fn find_phrases_exactly4<'a>(
    &'a self,
    a1: Option<&Atom>,
    a2: Option<&Atom>,
    a3: Option<&Atom>,
    a4: Option<&Atom>
) -> Vec<&'a [Token]>
[src]

pub fn find_phrases_exactly5<'a>(
    &'a self,
    a1: Option<&Atom>,
    a2: Option<&Atom>,
    a3: Option<&Atom>,
    a4: Option<&Atom>,
    a5: Option<&Atom>
) -> Vec<&'a [Token]>
[src]

Trait Implementations

impl Clone for Context[src]

impl Display for Context[src]

Auto Trait Implementations

impl RefUnwindSafe for Context

impl Send for Context

impl Sync for Context

impl Unpin for Context

impl UnwindSafe for Context

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> 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.