Skip to main content

Ctx

Struct Ctx 

Source
pub struct Ctx<'a> { /* private fields */ }
Expand description

The accepted acts, unique by address, with the clause’s domain filters resolved (SPEC-019 ADR-1909: domains read list-valued opener fields).

Implementations§

Source§

impl<'a> Ctx<'a>

Source

pub fn new(clause: &'a StateClause, acts: &'a [Act]) -> Ctx<'a>

Source

pub fn with_protocol( clause: &'a StateClause, acts: &'a [Act], protocol: Option<&'a CausalProtocol>, ) -> Ctx<'a>

Source

pub fn eval(&self, term: &Term) -> L

The join half of a term over this context’s accepted acts.

Source

pub fn read_carrier(&self, term: &Term) -> L

The successful read of retained evidence after resolving domains. Callers check dependency faults before interpreting this carrier.

Source

pub fn display(&self, f: &Factored, done: &[(String, Value)]) -> Value

The displayed value: the post-map applied to the join.

Source

pub fn rule_fault(&self, rule: &Rule) -> Option<Value>

Auto Trait Implementations§

§

impl<'a> Forget for Ctx<'a>

§

impl<'a> Freeze for Ctx<'a>

§

impl<'a> Move for Ctx<'a>

§

impl<'a> RefUnwindSafe for Ctx<'a>

§

impl<'a> Send for Ctx<'a>
where &'a StateClause: Send, &'a [Act]: Send, &'a CausalProtocol: Send, RawTable<(String, &'a Act)>: Send, RawVecInner: Send, BoxRaw<Value>: Send,

§

impl<'a> Sync for Ctx<'a>
where RawVecInner: Sync, BoxRaw<Definition>: Sync, BoxRaw<Lift>: Sync, BoxRaw<CounterRule>: Sync, BoxRaw<Value>: Sync, NodeRef<Owned, String, SetValZST, LeafOrInternal>: Sync, BoxRaw<(String, SetValZST)>: Sync, NodeRef<Owned, String, SExpr, LeafOrInternal>: Sync, BoxRaw<(String, SExpr)>: Sync, BoxRaw<Message>: Sync, NodeRef<Owned, String, StepDecl, LeafOrInternal>: Sync, BoxRaw<(String, StepDecl)>: Sync, RawTable<(String, &'a Act)>: Sync,

§

impl<'a> Unpin for Ctx<'a>
where &'a StateClause: Unpin, &'a [Act]: Unpin, &'a CausalProtocol: Unpin, *const u8 is !null: Unpin, &'a Act: Unpin, Box<Value>: Unpin,

§

impl<'a> UnsafeUnpin for Ctx<'a>

§

impl<'a> UnwindSafe for Ctx<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.