Trait workflow_wasm::convert::TryCastJsInto

source ·
pub trait TryCastJsInto<T>
where T: TryCastFromJs,
{ type Error: From<Error>; // Required methods fn try_into_cast(&self) -> Result<Cast<T>, Self::Error>; fn try_into_owned(&self) -> Result<T, Self::Error>; }

Required Associated Types§

Required Methods§

source

fn try_into_cast(&self) -> Result<Cast<T>, Self::Error>

source

fn try_into_owned(&self) -> Result<T, Self::Error>

Implementations on Foreign Types§

source§

impl<T> TryCastJsInto<T> for JsValue

§

type Error = <T as TryCastFromJs>::Error

source§

fn try_into_cast(&self) -> Result<Cast<T>, Self::Error>

source§

fn try_into_owned(&self) -> Result<T, Self::Error>

Implementors§