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§
Provided Associated Constants§
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,
Object Safety§
This trait is not object safe.