Trait 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

Source§

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§