pub trait FeatureFromJs:
JsCast
+ Clone
+ Debug {
const NAME: &'static str;
// Provided methods
fn feature_from_js_object(object: &Object) -> Option<Self> { ... }
fn feature_from_js_value(value: &JsValue) -> Option<Self> { ... }
}Required Associated Constants§
Provided Methods§
Sourcefn feature_from_js_object(object: &Object) -> Option<Self>
fn feature_from_js_object(object: &Object) -> Option<Self>
Get the wallet feature from the JS Object.
fn feature_from_js_value(value: &JsValue) -> Option<Self>
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.