pub struct TriggerSystem { /* private fields */ }Expand description
The trigger system maintains an ordered list of triggers.
Implementations§
Source§impl TriggerSystem
impl TriggerSystem
Sourcepub fn write_to(&self, output: impl Write, version: f64) -> Result<()>
pub fn write_to(&self, output: impl Write, version: f64) -> Result<()>
Write the trigger system to an output stream with the given system version.
Sourcepub fn num_triggers(&self) -> u32
pub fn num_triggers(&self) -> u32
Get the number of triggers in the trigger system.
Sourcepub fn triggers_unordered_mut(&mut self) -> impl Iterator<Item = &mut Trigger>
pub fn triggers_unordered_mut(&mut self) -> impl Iterator<Item = &mut Trigger>
Iterate over all triggers, mutably and unordered.
Trait Implementations§
Source§impl Clone for TriggerSystem
impl Clone for TriggerSystem
Source§fn clone(&self) -> TriggerSystem
fn clone(&self) -> TriggerSystem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TriggerSystem
impl Debug for TriggerSystem
Auto Trait Implementations§
impl Freeze for TriggerSystem
impl RefUnwindSafe for TriggerSystem
impl Send for TriggerSystem
impl Sync for TriggerSystem
impl Unpin for TriggerSystem
impl UnsafeUnpin for TriggerSystem
impl UnwindSafe for TriggerSystem
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