[][src]Trait js_ffi::ToJSValue

pub trait ToJSValue {
    fn to_js_value(&self) -> JSValue;
fn to_js_type(&self) -> JSType; }

Required methods

fn to_js_value(&self) -> JSValue

fn to_js_type(&self) -> JSType

Loading content...

Implementations on Foreign Types

impl<'_> ToJSValue for &'_ Vec<f32>[src]

impl<'_> ToJSValue for &'_ Vec<f64>[src]

impl<'_> ToJSValue for &'_ Vec<u8>[src]

impl<'_> ToJSValue for &'_ Vec<i8>[src]

impl<'_> ToJSValue for &'_ Vec<u16>[src]

impl<'_> ToJSValue for &'_ Vec<i16>[src]

impl<'_> ToJSValue for &'_ Vec<u32>[src]

impl<'_> ToJSValue for &'_ Vec<i32>[src]

impl<'_> ToJSValue for &'_ Vec<usize>[src]

Loading content...

Implementors

impl ToJSValue for JSFunction[src]

impl ToJSValue for JSObject[src]

impl ToJSValue for WasmMemory[src]

impl ToJSValue for bool[src]

impl ToJSValue for f32[src]

impl ToJSValue for f64[src]

impl ToJSValue for i8[src]

impl ToJSValue for i16[src]

impl ToJSValue for i32[src]

impl ToJSValue for u8[src]

impl ToJSValue for u16[src]

impl ToJSValue for u32[src]

impl ToJSValue for usize[src]

impl<'_> ToJSValue for &'_ JSObject[src]

impl<'_> ToJSValue for &'_ str[src]

Loading content...