Skip to main content

JsResultExt

Trait JsResultExt 

Source
pub trait JsResultExt<T> {
    // Required method
    fn with_js_context<F, S>(self, f: F) -> Result<T>
       where F: FnOnce() -> S,
             S: Into<String>;
}

Required Methods§

Source

fn with_js_context<F, S>(self, f: F) -> Result<T>
where F: FnOnce() -> S, S: Into<String>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> JsResultExt<T> for Result<T, JsValue>

Source§

fn with_js_context<F, S>(self, f: F) -> Result<T>
where F: FnOnce() -> S, S: Into<String>,

Source§

impl<T> JsResultExt<T> for Result<T, Error>

Source§

fn with_js_context<F, S>(self, f: F) -> Result<T>
where F: FnOnce() -> S, S: Into<String>,

Implementors§