#[repr(C)]pub struct SpellSlot {Show 29 fields
pub is_usable: i32,
pub is_in_range: i32,
pub is_enabled: i32,
_padding_after_is_enabled: i32,
pub cost: f64,
pub cast_time: f64,
pub range: f64,
pub gcd: f64,
pub execute_time: f64,
pub tick_time: f64,
pub travel_time: f64,
pub is_casting: i32,
_padding_after_is_casting: i32,
pub cast_end: f64,
pub is_channeling: i32,
_padding_after_is_channeling: i32,
pub channel_end: f64,
pub is_executing: i32,
_padding_after_is_executing: i32,
pub execute_end: f64,
pub is_in_flight: i32,
pub in_flight_count: i32,
pub in_flight_end: f64,
pub active_dots: i32,
_padding_after_active_dots: i32,
pub last_used: f64,
pub secondary_cost: f64,
pub resource_type_id: i32,
pub secondary_resource_type_id: i32,
}Fields§
§is_usable: i32§is_in_range: i32§is_enabled: i32§_padding_after_is_enabled: i32§cost: f64§cast_time: f64§range: f64§gcd: f64§execute_time: f64§tick_time: f64§travel_time: f64§is_casting: i32§_padding_after_is_casting: i32§cast_end: f64§is_channeling: i32§_padding_after_is_channeling: i32§channel_end: f64§is_executing: i32§_padding_after_is_executing: i32§execute_end: f64§is_in_flight: i32§in_flight_count: i32§in_flight_end: f64§active_dots: i32§_padding_after_active_dots: i32§last_used: f64§secondary_cost: f64§resource_type_id: i32§secondary_resource_type_id: i32Implementations§
Source§impl SpellSlot
impl SpellSlot
pub const SIZE: usize
pub const OFF_IS_USABLE: usize
pub const OFF_IS_IN_RANGE: usize
pub const OFF_IS_ENABLED: usize
const OFF__PADDING_AFTER_IS_ENABLED: usize
pub const OFF_COST: usize
pub const OFF_CAST_TIME: usize
pub const OFF_RANGE: usize
pub const OFF_GCD: usize
pub const OFF_EXECUTE_TIME: usize
pub const OFF_TICK_TIME: usize
pub const OFF_TRAVEL_TIME: usize
pub const OFF_IS_CASTING: usize
const OFF__PADDING_AFTER_IS_CASTING: usize
pub const OFF_CAST_END: usize
pub const OFF_IS_CHANNELING: usize
const OFF__PADDING_AFTER_IS_CHANNELING: usize
pub const OFF_CHANNEL_END: usize
pub const OFF_IS_EXECUTING: usize
const OFF__PADDING_AFTER_IS_EXECUTING: usize
pub const OFF_EXECUTE_END: usize
pub const OFF_IS_IN_FLIGHT: usize
pub const OFF_IN_FLIGHT_COUNT: usize
pub const OFF_IN_FLIGHT_END: usize
pub const OFF_ACTIVE_DOTS: usize
const OFF__PADDING_AFTER_ACTIVE_DOTS: usize
pub const OFF_LAST_USED: usize
pub const OFF_SECONDARY_COST: usize
pub const OFF_RESOURCE_TYPE_ID: usize
pub const OFF_SECONDARY_RESOURCE_TYPE_ID: 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§
impl Copy for SpellSlot
impl Pod for SpellSlot
Auto Trait Implementations§
impl Freeze for SpellSlot
impl RefUnwindSafe for SpellSlot
impl Send for SpellSlot
impl Sync for SpellSlot
impl Unpin for SpellSlot
impl UnsafeUnpin for SpellSlot
impl UnwindSafe for SpellSlot
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