Trait neon::result::JsResultExt[][src]

pub trait JsResultExt<'a, V: Value> {
    fn or_throw<'b, C: Context<'b>>(self, cx: &mut C) -> JsResult<'a, V>;
}

An extension trait for Result values that can be converted into JsResult values by throwing a JavaScript exception in the error case.

Required Methods

Implementors