script::dom::bindings::codegen::GenericBindings::PerformanceBinding

Type Alias DOMHighResTimeStamp

Source
pub(crate) type DOMHighResTimeStamp = Finite<f64>;

Aliased Type§

struct DOMHighResTimeStamp(f64);

Fields§

§0: f64

Implementations

Source§

impl<T: Float> Finite<T>

Source

pub(crate) fn new(value: T) -> Option<Finite<T>>

Create a new Finite<T: Float> safely.

Source

pub(crate) fn wrap(value: T) -> Finite<T>

Create a new Finite<T: Float>.

Trait Implementations

Source§

impl<T: Clone + Float> Clone for Finite<T>

Source§

fn clone(&self) -> Finite<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Float + Default> Default for Finite<T>

Source§

fn default() -> Finite<T>

Returns the “default value” for a type. Read more
Source§

impl<T: Float> Deref for Finite<T>

Source§

type Target = T

The resulting type after dereferencing.
Source§

fn deref(&self) -> &T

Dereferences the value.
Source§

impl<T: Float + FromJSValConvertible<Config = ()>> FromJSValConvertible for Finite<T>

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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>

Source§

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.
Source§

impl<T: PartialEq + Float> PartialEq for Finite<T>

Source§

fn eq(&self, other: &Finite<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T: Float + ToJSValConvertible> ToJSValConvertible for Finite<T>

Source§

unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)

Convert self to a JSVal. JSAPI failure causes a panic.
Source§

impl<T> Traceable for Finite<T>
where T: JSTraceable + Float,

Source§

unsafe fn trace(&self, tracer: *mut JSTracer)

Trace self.
Source§

impl<T: Copy + Float> Copy for Finite<T>

Source§

impl<T: Eq + Float> Eq for Finite<T>

Source§

impl<T: Float> StructuralPartialEq for Finite<T>