#[repr(C)]pub struct CooldownSlot {
pub ready_at: f64,
pub duration: f64,
pub current_charges: i32,
pub max_charges: i32,
pub next_charge_at: f64,
pub recharge_time: f64,
}Fields§
§ready_at: f64§duration: f64§current_charges: i32§max_charges: i32§next_charge_at: f64§recharge_time: f64Implementations§
Source§impl CooldownSlot
impl CooldownSlot
pub const SIZE: usize
pub const OFF_READY_AT: usize
pub const OFF_DURATION: usize
pub const OFF_CURRENT_CHARGES: usize
pub const OFF_MAX_CHARGES: usize
pub const OFF_NEXT_CHARGE_AT: usize
pub const OFF_RECHARGE_TIME: usize
Sourcepub fn dump_fields(&self, out: &mut String)
pub fn dump_fields(&self, out: &mut String)
Append human-readable field name/value pairs to the output string.
Trait Implementations§
Source§impl Clone for CooldownSlot
impl Clone for CooldownSlot
Source§fn clone(&self) -> CooldownSlot
fn clone(&self) -> CooldownSlot
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 CooldownSlot
impl Debug for CooldownSlot
Source§impl Default for CooldownSlot
impl Default for CooldownSlot
Source§fn default() -> CooldownSlot
fn default() -> CooldownSlot
Returns the “default value” for a type. Read more
impl Copy for CooldownSlot
impl Pod for CooldownSlot
Auto Trait Implementations§
impl Freeze for CooldownSlot
impl RefUnwindSafe for CooldownSlot
impl Send for CooldownSlot
impl Sync for CooldownSlot
impl Unpin for CooldownSlot
impl UnsafeUnpin for CooldownSlot
impl UnwindSafe for CooldownSlot
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
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more