pub struct State { /* private fields */ }
Implementations§
Source§impl State
impl State
pub fn from_triggers_saturated<S, I>(ctx: &ContextHandle, triggers: I) -> Self
pub fn from_triggers_checked<S, I>( ctx: &ContextHandle, triggers: I, ) -> Result<Self, 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