[−][src]Enum ecmascript::vm::value::Value
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(&self) -> 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]
fn into(self) -> PropertyKey[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.
fn sub(self, other: Value) -> Self::Output[src]
impl Div<Value> for Value[src]
type Output = Result<Value, Error>
The resulting type after applying the / operator.
fn div(self, other: Value) -> Self::Output[src]
impl Add<Value> for Value[src]
type Output = Result<Value, Error>
The resulting type after applying the + operator.
fn add(self, other: Value) -> Self::Output[src]
impl Mul<Value> for Value[src]
type Output = Result<Value, Error>
The resulting type after applying the * operator.
fn mul(self, other: Value) -> Self::Output[src]
impl Rem<Value> for Value[src]
type Output = Result<Value, Error>
The resulting type after applying the % operator.
fn rem(self, other: Value) -> Self::Output[src]
impl Hash 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,
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]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,