pub struct CompiledTriggerCondition<Event: TriggerEvent> { /* private fields */ }
Expand description
A compiled trigger condition.
This
Implementations§
Source§impl<Event: TriggerEvent> CompiledTriggerCondition<Event>
impl<Event: TriggerEvent> CompiledTriggerCondition<Event>
Sourcepub fn required_progress(&self) -> f64
pub fn required_progress(&self) -> f64
Returns the required progress of the compiled trigger condition.
Sourcepub fn current_progress(&self) -> f64
pub fn current_progress(&self) -> f64
Returns the current progress of the compiled trigger condition.
Trait Implementations§
Source§impl<Event: Clone + TriggerEvent> Clone for CompiledTriggerCondition<Event>
impl<Event: Clone + TriggerEvent> Clone for CompiledTriggerCondition<Event>
Source§fn clone(&self) -> CompiledTriggerCondition<Event>
fn clone(&self) -> CompiledTriggerCondition<Event>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<Event> Freeze for CompiledTriggerCondition<Event>
impl<Event> RefUnwindSafe for CompiledTriggerCondition<Event>
impl<Event> Send for CompiledTriggerCondition<Event>
impl<Event> Sync for CompiledTriggerCondition<Event>
impl<Event> Unpin for CompiledTriggerCondition<Event>
impl<Event> UnwindSafe for CompiledTriggerCondition<Event>
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