[][src]Trait ascesis::Contextual

pub trait Contextual {
    fn format(
        &self,
        ctx: &Arc<Mutex<Context>>
    ) -> Result<String, Box<dyn Error + 'static>>; fn with(&self, ctx: &Arc<Mutex<Context>>) -> InContext<Self> { ... }
fn with_mut(&mut self, ctx: &Arc<Mutex<Context>>) -> InContextMut<Self> { ... } }

A trait for binding objects to Context temporarily, without permanently storing (and synchronizing) context references inside the objects.

See InContext for more details.

Required methods

fn format(
    &self,
    ctx: &Arc<Mutex<Context>>
) -> Result<String, Box<dyn Error + 'static>>

Loading content...

Provided methods

fn with(&self, ctx: &Arc<Mutex<Context>>) -> InContext<Self>

fn with_mut(&mut self, ctx: &Arc<Mutex<Context>>) -> InContextMut<Self>

Loading content...

Implementations on Foreign Types

impl<T> Contextual for Vec<T> where
    T: ExclusivelyContextual
[src]

Loading content...

Implementors

impl Contextual for Clause[src]

impl Contextual for Literal[src]

impl Contextual for Variable[src]

impl Contextual for FiringComponent[src]

impl Contextual for Polynomial<LinkID>[src]

impl Contextual for State[src]

impl<T> Contextual for T where
    T: ExclusivelyContextual
[src]

Loading content...