pub struct FiringComponent { /* private fields */ }Implementations§
Source§impl FiringComponent
impl FiringComponent
pub fn is_enabled(&self, state: &State) -> bool
Sourcepub fn fire(&self, state: &mut State) -> Result<(), AcesError>
pub fn fire(&self, state: &mut State) -> Result<(), AcesError>
Note: this routine doesn’t check for enablement. Instead, it
assumes that the firing component is enabled in the given
state. Therefore, prior to a call to fire(),
is_enabled() should return true (it may be called
directly, or e.g. via FiringSet::get_enabled()).
Trait Implementations§
Source§impl Contextual for FiringComponent
impl Contextual for FiringComponent
Source§impl Debug for FiringComponent
impl Debug for FiringComponent
Source§impl Default for FiringComponent
impl Default for FiringComponent
Source§fn default() -> FiringComponent
fn default() -> FiringComponent
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FiringComponent
impl RefUnwindSafe for FiringComponent
impl Send for FiringComponent
impl Sync for FiringComponent
impl Unpin for FiringComponent
impl UnwindSafe for FiringComponent
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<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.