#[repr(transparent)]
pub struct Number { /* fields omitted */ }
Expand description
The Number.isFinite()
method determines whether the passed value is a finite number.
MDN documentation
The Number.isInteger()
method determines whether the passed value is an integer.
MDN documentation
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
The Number.isSafeInteger()
method determines whether the provided value is a number
that is a safe integer.
MDN documentation
👎 Deprecated:
recommended to use Number::from
instead
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
The Number.parseInt()
method parses a string argument and returns an
integer of the specified radix or base.
MDN documentation
The Number.parseFloat()
method parses a string argument and returns a
floating point number.
MDN documentation
The toLocaleString()
method returns a string with a language sensitive
representation of this number.
MDN documentation
The toPrecision()
method returns a string representing the Number
object to the specified precision.
MDN documentation
The toFixed()
method returns a string representing the Number
object using fixed-point notation.
MDN documentation
The toExponential()
method returns a string representing the Number
object in exponential notation.
MDN documentation
The toString()
method returns a string representing the
specified Number object.
MDN documentation
The valueOf()
method returns the wrapped primitive value of
a Number object.
MDN documentation
The smallest positive representable number—that is, the positive number closest to zero
(without actually being zero).
MDN Documentation
Special value representing negative infinity. Returned on overflow.
MDN Documentation
The constructor property returns a reference to the Object
constructor
function that created the instance object.
MDN documentation
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 valueOf()
method returns the primitive value of the
specified object.
MDN documentation
The resulting type after applying the +
operator.
The resulting type after applying the +
operator.
The resulting type after applying the +
operator.
The resulting type after applying the +
operator.
The resulting type after applying the &
operator.
The resulting type after applying the &
operator.
The resulting type after applying the &
operator.
The resulting type after applying the &
operator.
The resulting type after applying the |
operator.
The resulting type after applying the |
operator.
The resulting type after applying the |
operator.
The resulting type after applying the |
operator.
The resulting type after applying the ^
operator.
The resulting type after applying the ^
operator.
The resulting type after applying the ^
operator.
The resulting type after applying the ^
operator.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
The resulting type after dereferencing.
Formats the value using the given formatter. Read more
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The associated error which can be returned from parsing.
Parses a string s
to return a value of this type. Read more
The wasm ABI type that this converts from when coming back out from the
ABI boundary. Read more
The wasm ABI type that this converts into when crossing the ABI
boundary. Read more
Convert self
into Self::Abi
so that it can be sent across the wasm
ABI boundary. Read more
The wasm ABI type that this converts into when crossing the ABI
boundary. Read more
Convert self
into Self::Abi
so that it can be sent across the wasm
ABI boundary. Read more
Performs a dynamic instanceof
check to see whether the JsValue
provided is an instance of this type. Read more
Performs a dynamic check to see whether the JsValue
provided
is a value of this type. Read more
Performs a zero-cost unchecked conversion from a JsValue
into an
instance of Self
Read more
Performs a zero-cost unchecked conversion from a &JsValue
into an
instance of &Self
. Read more
Test whether this JS value has a 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
Test whether this JS value is an instance of the type T
. Read more
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the -
operator.
The resulting type after applying the -
operator.
The resulting type after applying the !
operator.
The resulting type after applying the !
operator.
Tests whether the argument is a “none” instance. If so it will be
deserialized as None
, and otherwise it will be passed to
FromWasmAbi
. Read more
Returns an ABI instance indicating “none”, which JS will interpret as
the None
branch of this option. Read more
Returns an ABI instance indicating “none”, which JS will interpret as
the None
branch of this option. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Method which takes an iterator and generates Self
from the elements by
multiplying the items. Read more
Method which takes an iterator and generates Self
from the elements by
multiplying the items. Read more
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
Recover a Self::Anchor
from Self::Abi
. Read more
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the <<
operator.
The resulting type after applying the <<
operator.
The resulting type after applying the <<
operator.
The resulting type after applying the <<
operator.
The resulting type after applying the >>
operator.
The resulting type after applying the >>
operator.
The resulting type after applying the >>
operator.
The resulting type after applying the >>
operator.
The resulting type after applying the -
operator.
The resulting type after applying the -
operator.
The resulting type after applying the -
operator.
The resulting type after applying the -
operator.
Method which takes an iterator and generates Self
from the elements by
“summing up” the items. Read more
Method which takes an iterator and generates Self
from the elements by
“summing up” the items. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
Same as IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String
. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.