[][src]Struct js_sys::Number

#[repr(transparent)]
pub struct Number { /* fields omitted */ }
[]

Methods

impl Number
[src]
[]

[]

The Number.isFinite() method determines whether the passed value is a finite number.

MDN documentation

impl Number
[src]
[]

[]

The Number.isInteger() method determines whether the passed value is an integer.

MDN documentation

impl Number
[src]
[]

[]

The Number.isNaN() method determines whether the passed value is NaN and its type is Number. It is a more robust version of the original, global isNaN().

MDN documentation

impl Number
[src]
[]

[]

The Number.isSafeInteger() method determines whether the provided value is a number that is a safe integer.

MDN documentation

impl Number
[src]
[]

[]

The Number JavaScript object is a wrapper object allowing you to work with numerical values. A Number object is created using the Number() constructor.

MDN documentation

impl Number
[src]
[]

[]

The Number.parseInt() method parses a string argument and returns an integer of the specified radix or base.

MDN documentation

impl Number
[src]
[]

[]

The Number.parseFloat() method parses a string argument and returns a floating point number.

MDN documentation

impl Number
[src]
[]

[]

The toLocaleString() method returns a string with a language sensitive representation of this number.

MDN documentation

impl Number
[src]
[]

[]

The toPrecision() method returns a string representing the Number object to the specified precision.

MDN documentation

impl Number
[src]
[]

[]

The toFixed() method returns a string representing the Number object using fixed-point notation.

MDN documentation

impl Number
[src]
[]

[]

The toExponential() method returns a string representing the Number object in exponential notation.

MDN documentation

impl Number
[src]
[]

[]

The toString() method returns a string representing the specified Number object.

MDN documentation

impl Number
[src]
[]

[]

The valueOf() method returns the wrapped primitive value of a Number object.

MDN documentation

Methods from Deref<Target = Object>

[]

The hasOwnProperty() method returns a boolean indicating whether the object has the specified property as its own property (as opposed to inheriting it).

MDN documentation

[]

The isPrototypeOf() method checks if an object exists in another object's prototype chain.

MDN documentation

[]

The propertyIsEnumerable() method returns a Boolean indicating whether the specified property is enumerable.

MDN documentation

[]

The toLocaleString() method returns a string representing the object. This method is meant to be overridden by derived objects for locale-specific purposes.

MDN documentation

[]

The toString() method returns a string representing the object.

MDN documentation

[]

The valueOf() method returns the primitive value of the specified object.

MDN documentation

Trait Implementations

impl AsRef<JsValue> for Number
[src]
[+]

impl AsRef<Object> for Number
[src]
[+]

impl From<JsValue> for Number
[src]
[+]

impl From<Number> for JsValue
[src]
[+]

impl From<Number> for Object
[src]
[+]

impl Clone for Number
[src]
[+]

[]

Performs copy-assignment from source. Read more

impl Debug for Number
[src]
[+]

impl Deref for Number
[src]
[+]

The resulting type after dereferencing.

impl WasmDescribe for Number
[src]
[+]

impl IntoWasmAbi for Number
[src]
[+]

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a Number
[src]
[+]

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl FromWasmAbi for Number
[src]
[+]

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl OptionFromWasmAbi for Number
[src]
[+]

impl RefFromWasmAbi for Number
[src]
[+]

The wasm ABI type references to Self are recovered from.

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl OptionIntoWasmAbi for Number
[src]
[+]

impl<'a> OptionIntoWasmAbi for &'a Number
[src]
[+]

impl JsCast for Number
[src]
[+]

[]

Test whether this JS value is an instance of the type T. Read more

[]

Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more

[]

Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more

[]

Performs a zero-cost unchecked cast into the specified type. Read more

[]

Performs a zero-cost unchecked cast into a reference to the specified type. Read more

Auto Trait Implementations

impl !Send for Number

impl !Sync for Number

Blanket Implementations

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]
[+]

Same as IntoWasmAbi::Abi