[][src]Trait aces::Contextual

pub trait Contextual: Sized {
    fn format(&self, ctx: &ContextHandle) -> Result<String, Box<dyn Error>>;

    fn with(&self, ctx: &ContextHandle) -> InContext<Self> { ... }
fn with_mut(&mut self, ctx: &ContextHandle) -> 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: &ContextHandle) -> Result<String, Box<dyn Error>>

Loading content...

Provided methods

fn with(&self, ctx: &ContextHandle) -> InContext<Self>

fn with_mut(&mut self, ctx: &ContextHandle) -> InContextMut<Self>

Loading content...

Implementations on Foreign Types

impl<T: ExclusivelyContextual> Contextual for Vec<T>[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: ExclusivelyContextual> Contextual for T[src]

Loading content...