pub trait FromValue {
    fn from_value(v: Value) -> Res<Self>
    where
        Self: Sized
; fn get(v: Value) -> Option<Self>
    where
        Self: Sized
, { ... } }

Required Methods§

attempt to cast v to the type of self using any reasonable means

Provided Methods§

extract the type of self from v if the type of v is equivelent to the type of self, otherwise return None.

Implementations on Foreign Types§

Implementors§