pub struct ChargeStep {
pub release: ChargeRelease,
pub charging: bool,
pub power: f32,
pub cooldown_seconds: f32,
}Expand description
A release resolution and the charge state after the same snapshot.
An old release can coexist with a new charge when recovery is zero or the
old charge was too short. See ChargeAction::step_edges.
Fields§
§release: ChargeReleaseAt most one resolution, even if the snapshot aggregates many transitions.
charging: boolWhether a charge remains active after this step.
power: f32Current charge power, not the power of an old emitted release.
cooldown_seconds: f32Remaining recovery in simulation seconds after this step.
Trait Implementations§
Source§impl Clone for ChargeStep
impl Clone for ChargeStep
Source§fn clone(&self) -> ChargeStep
fn clone(&self) -> ChargeStep
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 ChargeStep
impl Debug for ChargeStep
Source§impl PartialEq for ChargeStep
impl PartialEq for ChargeStep
impl Copy for ChargeStep
impl StructuralPartialEq for ChargeStep
Auto Trait Implementations§
impl Freeze for ChargeStep
impl RefUnwindSafe for ChargeStep
impl Send for ChargeStep
impl Sync for ChargeStep
impl Unpin for ChargeStep
impl UnwindSafe for ChargeStep
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