pub struct DpsSample {
pub time_ms: u32,
pub dps: f64,
}Expand description
One per-bucket DPS sample for the preview damage-over-time chart.
Fields§
§time_ms: u32§dps: f64Trait Implementations§
Source§impl IntoWasmAbi for &DpsSample
impl IntoWasmAbi for &DpsSample
Source§impl IntoWasmAbi for DpsSample
impl IntoWasmAbi for DpsSample
Source§impl OptionIntoWasmAbi for DpsSample
impl OptionIntoWasmAbi for DpsSample
Source§impl Tsify for DpsSample
impl Tsify for DpsSample
const DECL: &'static str = "/**\n * One per-bucket DPS sample for the preview damage-over-time chart.\n */\nexport interface DpsSample {\n timeMs: number;\n dps: number;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
Source§impl VectorIntoWasmAbi for DpsSample
impl VectorIntoWasmAbi for DpsSample
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribeVector for DpsSample
impl WasmDescribeVector for DpsSample
Auto Trait Implementations§
impl Freeze for DpsSample
impl RefUnwindSafe for DpsSample
impl Send for DpsSample
impl Sync for DpsSample
impl Unpin for DpsSample
impl UnsafeUnpin for DpsSample
impl UnwindSafe for DpsSample
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
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§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.