pub enum ChargeRelease {
None,
CanceledTooShort,
Emitted(f32),
}Expand description
The single release resolution from an edge-aware step.
See ChargeAction::step_edges for a compiling example and ordering rules.
Variants§
None
No charge was released (including an ignored tap during recovery).
CanceledTooShort
A charge ended below the minimum, including its 1e-7 second tolerance.
No recovery starts and no action is requested.
Emitted(f32)
A release request with normalized, capped power in 0.0..=1.0.
This does not mean the game accepted an action or spent resources.
Trait Implementations§
Source§impl Clone for ChargeRelease
impl Clone for ChargeRelease
Source§fn clone(&self) -> ChargeRelease
fn clone(&self) -> ChargeRelease
Returns a duplicate 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 moreSource§impl Debug for ChargeRelease
impl Debug for ChargeRelease
Source§impl PartialEq for ChargeRelease
impl PartialEq for ChargeRelease
impl Copy for ChargeRelease
impl StructuralPartialEq for ChargeRelease
Auto Trait Implementations§
impl Freeze for ChargeRelease
impl RefUnwindSafe for ChargeRelease
impl Send for ChargeRelease
impl Sync for ChargeRelease
impl Unpin for ChargeRelease
impl UnwindSafe for ChargeRelease
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