Trait netidx_netproto::value::FromValue
source · pub trait FromValue {
// Required method
fn from_value(v: Value) -> Res<Self>
where Self: Sized;
// Provided method
fn get(v: Value) -> Option<Self>
where Self: Sized { ... }
}
Required Methods§
sourcefn from_value(v: Value) -> Res<Self>where
Self: Sized,
fn from_value(v: Value) -> Res<Self>where Self: Sized,
attempt to cast v to the type of self using any reasonable means