[][src]Trait boa::builtins::value::FromValue

pub trait FromValue {
    fn from_value(value: Value) -> Result<Self, &'static str>
    where
        Self: Sized
; }

Conversion to Rust values from Javascript values

Required methods

fn from_value(value: Value) -> Result<Self, &'static str> where
    Self: Sized

Convert this value to a Javascript value

Loading content...

Implementations on Foreign Types

impl FromValue for String[src]

impl FromValue for char[src]

impl FromValue for f64[src]

impl FromValue for i32[src]

impl FromValue for usize[src]

impl FromValue for bool[src]

impl<T: FromValue> FromValue for Vec<T>[src]

impl FromValue for JSONValue[src]

impl FromValue for ()[src]

impl<T: FromValue> FromValue for Option<T>[src]

Loading content...

Implementors

impl FromValue for Object[src]

impl FromValue for Property[src]

fn from_value(v: Value) -> Result<Self, &'static str>[src]

Attempt to fetch values "configurable", "enumerable", "writable" from the value, if they're not there default to false

impl FromValue for NativeFunctionData[src]

impl FromValue for Value[src]

Loading content...