Trait tsify_next::Tsify

source ·
pub trait Tsify {
    type JsType: JsCast;

    const DECL: &'static str;
    const SERIALIZATION_CONFIG: SerializationConfig = _;

    // Provided methods
    fn into_js(&self) -> Result<Self::JsType>
       where Self: Serialize { ... }
    fn from_js<T: Into<JsValue>>(js: T) -> Result<Self>
       where Self: DeserializeOwned { ... }
}

Required Associated Types§

Required Associated Constants§

source

const DECL: &'static str

Provided Associated Constants§

Provided Methods§

source

fn into_js(&self) -> Result<Self::JsType>
where Self: Serialize,

source

fn from_js<T: Into<JsValue>>(js: T) -> Result<Self>
where Self: DeserializeOwned,

Object Safety§

This trait is not object safe.

Implementors§