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>
impl<'a> Ctx<'a>
pub fn new(clause: &'a StateClause, acts: &'a [Act]) -> Ctx<'a>
pub fn with_protocol( clause: &'a StateClause, acts: &'a [Act], protocol: Option<&'a CausalProtocol>, ) -> Ctx<'a>
Sourcepub fn eval(&self, term: &Term) -> L
pub fn eval(&self, term: &Term) -> L
The join half of a term over this context’s accepted acts.
Sourcepub fn read_carrier(&self, term: &Term) -> L
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.
Sourcepub fn display(&self, f: &Factored, done: &[(String, Value)]) -> Value
pub fn display(&self, f: &Factored, done: &[(String, Value)]) -> Value
The displayed value: the post-map applied to the join.
pub fn rule_fault(&self, rule: &Rule) -> Option<Value>
Auto Trait Implementations§
impl<'a> Forget for Ctx<'a>
impl<'a> Freeze for Ctx<'a>where
&'a StateClause: Freeze,
&'a [Act]: Freeze,
&'a CausalProtocol: Freeze,
*const u8 is !null: Freeze,
PhantomData<(String, &'a Act)>: Freeze,
PhantomData<(String, String, Vec<Value>)>: Freeze,
PhantomData<(String, Value)>: Freeze,
impl<'a> Move for Ctx<'a>
impl<'a> RefUnwindSafe for Ctx<'a>
impl<'a> Send for Ctx<'a>
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>
impl<'a> UnsafeUnpin for Ctx<'a>where
&'a StateClause: UnsafeUnpin,
&'a [Act]: UnsafeUnpin,
&'a CausalProtocol: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, &'a Act)>: UnsafeUnpin,
PhantomData<(String, String, Vec<Value>)>: UnsafeUnpin,
PhantomData<(String, Value)>: UnsafeUnpin,
impl<'a> UnwindSafe for Ctx<'a>where
&'a StateClause: UnwindSafe,
&'a [Act]: UnwindSafe,
&'a CausalProtocol: UnwindSafe,
NonNull<u8>: UnwindSafe,
RawVecInner: UnwindSafe,
&'a Act: UnwindSafe,
BoxRaw<Value>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more