[][src]Enum ecmascript::vm::value::Value

pub enum Value {
    Undefined(Undefined),
    Null(Null),
    Boolean(Boolean),
    String(String),
    Number(Number),
    Symbol(Symbol),
    Object(Object),
}

Variants

Undefined(Undefined)Null(Null)Boolean(Boolean)String(String)Number(Number)Symbol(Symbol)Object(Object)

Methods

impl Value[src]

pub fn kind(&self) -> ValueKind[src]

pub fn is_primitive(&self) -> bool[src]

pub fn is_undefined(&self) -> bool[src]

pub fn is_null(&self) -> bool[src]

pub fn is_boolean(&self) -> bool[src]

pub fn is_string(&self) -> bool[src]

pub fn is_number(&self) -> bool[src]

pub fn is_symbol(&self) -> bool[src]

pub fn is_object(&self) -> bool[src]

pub fn toPrimitive(&self, preferred_type: &str) -> Result<Value, Error>[src]

pub fn toBoolean(&self) -> Boolean[src]

pub fn toNumber(&self) -> Result<Number, Error>[src]

pub fn toString(&self) -> Result<String, Error>[src]

pub fn toObject(&self) -> Result<Object, Object>[src]

pub fn ops_delete(&self) -> bool[src]

pub fn ops_void(&self) -> bool[src]

pub fn ops_typeof(&self) -> bool[src]

Trait Implementations

impl PartialEq<Value> for Value[src]

impl Clone for Value[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<Undefined> for Value[src]

impl From<Null> for Value[src]

impl From<Boolean> for Value[src]

impl From<Number> for Value[src]

impl From<String> for Value[src]

impl<'a> From<&'a String> for Value[src]

impl From<Symbol> for Value[src]

impl From<Object> for Value[src]

impl From<String> for Value[src]

impl<'a> From<&'a String> for Value[src]

impl From<f64> for Value[src]

impl From<f32> for Value[src]

impl From<usize> for Value[src]

impl From<u64> for Value[src]

impl From<u32> for Value[src]

impl From<u16> for Value[src]

impl From<u8> for Value[src]

impl From<isize> for Value[src]

impl From<i64> for Value[src]

impl From<i32> for Value[src]

impl From<i16> for Value[src]

impl From<i8> for Value[src]

impl From<bool> for Value[src]

impl Eq for Value[src]

impl Into<PropertyKey> for Value[src]

impl Display for Value[src]

impl Debug for Value[src]

impl Sub<Value> for Value[src]

type Output = Result<Value, Error>

The resulting type after applying the - operator.

impl Div<Value> for Value[src]

type Output = Result<Value, Error>

The resulting type after applying the / operator.

impl Add<Value> for Value[src]

type Output = Result<Value, Error>

The resulting type after applying the + operator.

impl Mul<Value> for Value[src]

type Output = Result<Value, Error>

The resulting type after applying the * operator.

impl Rem<Value> for Value[src]

type Output = Result<Value, Error>

The resulting type after applying the % operator.

impl Hash for Value[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl !Send for Value

impl !Sync for Value

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
    T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>, 
[src]