Skip to main content

JsHostGetter

Trait JsHostGetter 

pub trait JsHostGetter<T, M>:
    Send
    + Sync
    + 'static { }
Available on crate features js and std only.
Expand description

A typed getter for a JsHostObject property.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

§

impl<T, F, R, M> JsHostGetter<T, M> for F
where T: 'static, F: Fn(&T) -> R + Send + Sync + 'static, R: JsFnOutput<M>, M: 'static,