[][src]Struct script::dom::bindings::num::Finite

pub struct Finite<T: Float>(T);

Encapsulates the IDL restricted float type.

Implementations

impl<T: Float> Finite<T>[src]

pub fn new(value: T) -> Option<Finite<T>>[src]

Create a new Finite<T: Float> safely.

pub fn wrap(value: T) -> Finite<T>[src]

Create a new Finite<T: Float>.

Trait Implementations

impl<T: Clone + Float> Clone for Finite<T>[src]

impl<T: Copy + Float> Copy for Finite<T>[src]

impl<T: Float + Default> Default for Finite<T>[src]

impl<T: Float> Deref for Finite<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T: Eq + Float> Eq for Finite<T>[src]

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

type Config = ()

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

impl<T: Float> JSTraceable for Finite<T> where
    T: JSTraceable
[src]

impl<T: Float + MallocSizeOf> MallocSizeOf for Finite<T>[src]

impl<T: PartialEq + Float> PartialEq<Finite<T>> for Finite<T>[src]

impl<T: Float> StructuralEq for Finite<T>[src]

impl<T: Float> StructuralPartialEq for Finite<T>[src]

impl<T: Float + ToJSValConvertible> ToJSValConvertible for Finite<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Finite<T> where
    T: RefUnwindSafe

impl<T> Send for Finite<T> where
    T: Send

impl<T> Sync for Finite<T> where
    T: Sync

impl<T> Unpin for Finite<T> where
    T: Unpin

impl<T> UnwindSafe for Finite<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeBoxed<Box<T>> for T[src]

impl<T> MaybeBoxed<T> for T[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> SetParameter for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]