Trait TryMaybeFrom

Source
pub trait TryMaybeFrom<T> {
    type Error;

    // Required method
    fn try_maybe_from(value: T) -> Result<Option<Self>, Self::Error>
       where Self: Sized;
}

Required Associated Types§

Required Methods§

Source

fn try_maybe_from(value: T) -> Result<Option<Self>, Self::Error>
where Self: Sized,

Implementors§

Source§

impl<T, E> TryMaybeFrom<JsValue> for T
where T: TryFrom<JsValue, Error = E>,

Source§

type Error = E