pub trait TryFromJs<'cx>where
Self: Sealed + Sized,{
type Error;
// Required methods
fn try_from_js<C>(
cx: &mut C,
v: Handle<'cx, JsValue>
) -> NeonResult<Result<Self, Self::Error>>
where C: Context<'cx>;
fn from_js<C>(cx: &mut C, v: Handle<'cx, JsValue>) -> NeonResult<Self>
where C: Context<'cx>;
}
Expand description
Extract Rust data from a JavaScript value
Required Associated Types§
Required Methods§
fn try_from_js<C>(
cx: &mut C,
v: Handle<'cx, JsValue>
) -> NeonResult<Result<Self, Self::Error>>where
C: Context<'cx>,
fn from_js<C>(cx: &mut C, v: Handle<'cx, JsValue>) -> NeonResult<Self>where
C: Context<'cx>,
Object Safety§
This trait is not object safe.