[−][src]Trait nj_core::val::ExtractArgFromJs
Required methods
pub fn convert_arg_at(
js_cb: &'a JsCallback,
index: usize
) -> Result<Self, NjError>
[src]
js_cb: &'a JsCallback,
index: usize
) -> Result<Self, NjError>
convert js callback argument at index
Provided methods
Loading content...Implementations on Foreign Types
impl<'a, T: Sized> ExtractArgFromJs<'a> for Option<T> where
T: JSValue<'a>,
[src]
T: JSValue<'a>,
pub fn label() -> &'static str
[src]
pub fn convert_arg_at(
js_cb: &'a JsCallback,
index: usize
) -> Result<Self, NjError>
[src]
js_cb: &'a JsCallback,
index: usize
) -> Result<Self, NjError>
Implementors
impl<'_> ExtractArgFromJs<'_> for JsEnv
[src]
pub fn convert_arg_at(
js_cb: &JsCallback,
_index: usize
) -> Result<Self, NjError>
[src]
js_cb: &JsCallback,
_index: usize
) -> Result<Self, NjError>
impl<'a, T: ?Sized> ExtractArgFromJs<'a> for T where
T: JSValue<'a>,
[src]
T: JSValue<'a>,
pub fn label() -> &'static str
[src]
pub fn convert_arg_at(
js_cb: &'a JsCallback,
index: usize
) -> Result<Self, NjError>
[src]
js_cb: &'a JsCallback,
index: usize
) -> Result<Self, NjError>