[−][src]Enum ecmascript::compiler::value::Value
Variants
Undefined
Null
String(StringRef)
Object(ObjectRef)
Boolean(bool)
I64(i64)
F64(f64)
J64(Complex64Ref)
BigInt(BigIntRef)
Symbol(SymbolRef)
Methods
impl Value
[src]
pub const ZERO: Value
[src]
pub const ONE: Value
[src]
pub const NAN: Value
[src]
pub const INFINITY: Value
[src]
pub const NEG_INFINITY: Value
[src]
pub const NEG_ZERO: Value
[src]
pub fn typeof_(&self) -> &'static str
[src]
pub fn zero<T: Zero + Into<Value>>() -> T
[src]
pub fn one<T: One + Into<Value>>() -> T
[src]
pub fn nan<T: Float + Into<Value>>() -> T
[src]
pub fn infinity<T: Float + Into<Value>>() -> T
[src]
pub fn neg_infinity<T: Float + Into<Value>>() -> T
[src]
pub fn neg_zero<T: Float + Into<Value>>() -> T
[src]
pub fn is_zero(&self) -> bool
[src]
pub fn is_one(&self) -> bool
[src]
pub fn is_nan(&self) -> bool
[src]
Returns true if this value is NaN and false otherwise.
pub fn is_infinite(&self) -> bool
[src]
Returns true if this value is positive infinity or negative infinity and false otherwise.
pub fn is_finite(&self) -> bool
[src]
Returns true if this number is neither infinite nor NaN.
pub fn copy(&self) -> Value
[src]
pub fn deepcopy(&self) -> Value
[src]
pub fn is_undefined(&self) -> bool
[src]
pub fn is_null(&self) -> bool
[src]
pub fn is_string(&self) -> bool
[src]
pub fn is_object(&self) -> bool
[src]
pub fn is_boolean(&self) -> bool
[src]
pub fn is_number(&self) -> bool
[src]
pub fn is_int(&self) -> bool
[src]
pub fn is_float(&self) -> bool
[src]
pub fn is_symbol(&self) -> bool
[src]
pub fn is_bigint(&self) -> bool
[src]
pub fn is_complex(&self) -> bool
[src]
Trait Implementations
impl PartialEq<Value> for Value
[src]
impl Clone for Value
[src]
fn clone(&self) -> Value
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<String> for Value
[src]
impl<'_> From<&'_ str> for Value
[src]
impl From<Object> for Value
[src]
impl From<bool> for Value
[src]
impl From<u8> for Value
[src]
impl From<u16> for Value
[src]
impl From<u32> for Value
[src]
impl From<u64> for Value
[src]
impl From<usize> for Value
[src]
impl From<i8> for Value
[src]
impl From<i16> for Value
[src]
impl From<i32> for Value
[src]
impl From<i64> for Value
[src]
impl From<isize> for Value
[src]
impl From<f32> for Value
[src]
impl From<f64> for Value
[src]
impl From<Symbol> for Value
[src]
impl From<BigInt> for Value
[src]
impl From<BigUint> for Value
[src]
impl From<Complex<f64>> for Value
[src]
impl Display for Value
[src]
impl Debug for Value
[src]
Auto Trait Implementations
Blanket Implementations
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,