Type Alias script::dom::bindings::codegen::Bindings::PerformanceBinding::DOMHighResTimeStamp
source · pub type DOMHighResTimeStamp = Finite<f64>;
Aliased Type§
struct DOMHighResTimeStamp(f64);
Fields§
§0: f64
Implementations§
Trait Implementations§
source§impl<T: Float + FromJSValConvertible<Config = ()>> FromJSValConvertible for Finite<T>
impl<T: Float + FromJSValConvertible<Config = ()>> FromJSValConvertible for Finite<T>
source§unsafe fn from_jsval(
cx: *mut JSContext,
value: HandleValue<'_>,
option: ()
) -> Result<ConversionResult<Finite<T>>, ()>
unsafe fn from_jsval( cx: *mut JSContext, value: HandleValue<'_>, option: () ) -> Result<ConversionResult<Finite<T>>, ()>
Convert
val
to type Self
.
Optional configuration of type T
can be passed as the option
argument.
If it returns Err(())
, a JSAPI exception is pending.
If it returns Ok(Failure(reason))
, there is no pending JSAPI exception.source§impl<T: Float + MallocSizeOf> MallocSizeOf for Finite<T>
impl<T: Float + MallocSizeOf> MallocSizeOf for Finite<T>
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.