[−][src]Struct script::dom::bindings::num::Finite
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]
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.
unsafe fn from_jsval(
cx: *mut JSContext,
value: HandleValue,
option: ()
) -> Result<ConversionResult<Finite<T>>, ()>[src]
cx: *mut JSContext,
value: HandleValue,
option: ()
) -> Result<ConversionResult<Finite<T>>, ()>
impl<T: Float> JSTraceable for Finite<T> where
T: JSTraceable, [src]
T: JSTraceable,
impl<T: Float + MallocSizeOf> MallocSizeOf for Finite<T>[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize[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]
unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue)[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Finite<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Finite<T> where
T: Send,
T: Send,
impl<T> Sync for Finite<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Finite<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Finite<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool[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]
U: From<T>,
impl<T> MaybeBoxed<Box<T>> for T[src]
fn maybe_boxed(self) -> Box<T>[src]
impl<T> MaybeBoxed<T> for T[src]
fn maybe_boxed(self) -> 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]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>, [src]
V: MultiLane<T>,