Trait ReadJs

Source
pub trait ReadJs {
    // Required method
    fn read_js(ctx: &DukContext, obj_index: i32) -> Result<Self, JsError>
       where Self: Sized;

    // Provided method
    fn read_js_top(ctx: &DukContext) -> Result<Self, JsError>
       where Self: Sized { ... }
}

Required Methods§

Source

fn read_js(ctx: &DukContext, obj_index: i32) -> Result<Self, JsError>
where Self: Sized,

Provided Methods§

Source

fn read_js_top(ctx: &DukContext) -> Result<Self, JsError>
where Self: Sized,

Implementors§

Source§

impl<'de, T: Deserialize<'de>> ReadJs for T