pub trait ResultExt<T> {
    fn or_throw<'a, C: Context<'a>>(self, cx: &mut C) -> NeonResult<T>;
}
Expand description

Extension trait for converting Rust Result values into NeonResult values by throwing JavaScript exceptions.

Required Methods

Implementations on Foreign Types

Creates an Error on error

Implementors