pub struct State { /* private fields */ }Implementations§
Source§impl State
impl State
pub fn from_triggers_saturated<S, I>( ctx: &Arc<Mutex<Context>>, triggers: I, ) -> State
pub fn from_triggers_checked<S, I>( ctx: &Arc<Mutex<Context>>, triggers: I, ) -> Result<State, AcesError>
pub fn clear(&mut self)
pub fn get(&self, node_id: NodeID) -> Multiplicity
pub fn set_unchecked(&mut self, node_id: NodeID, num_tokens: Multiplicity)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference
impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference
Source§unsafe fn part_ptr(
ptr: *const <Reference as PartialRefTarget>::RawTarget,
) -> <<Inner as Part>::PartType as PartType>::Ptr
unsafe fn part_ptr( ptr: *const <Reference as PartialRefTarget>::RawTarget, ) -> <<Inner as Part>::PartType as PartType>::Ptr
Given a constant pointer to a target, produce a constant pointer to a part of it.
Source§unsafe fn part_ptr_mut(
ptr: *mut <Reference as PartialRefTarget>::RawTarget,
) -> <<Inner as Part>::PartType as PartType>::PtrMut
unsafe fn part_ptr_mut( ptr: *mut <Reference as PartialRefTarget>::RawTarget, ) -> <<Inner as Part>::PartType as PartType>::PtrMut
Given a mutable pointer to a target, produce a mutable pointer to a part of it.