pub(crate) 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.