Skip to main content

JsInputValue

Trait JsInputValue 

Source
pub trait JsInputValue:
    Sealed
    + Clone
    + 'static { }
Expand description

Bounded, checked JavaScript value conversion. This trait is sealed so an exposed input cannot silently acquire arbitrary serialization semantics.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl JsInputValue for String

Source§

impl JsInputValue for bool

Source§

impl JsInputValue for f64

Source§

impl JsInputValue for i32

Source§

impl JsInputValue for u32

Source§

impl<T: JsInputValue> JsInputValue for Option<T>

Source§

impl<T: JsInputValue> JsInputValue for Vec<T>

Implementors§