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

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

impl<'a> JsResultExt<'a, JsString> for StringResult<'a>
[src]

impl<'a, F: Value, T: Value> JsResultExt<'a, T> for DowncastResult<'a, F, T>
[src]