Trait sindra::value::Extract
[−]
[src]
pub trait Extract<T>: Value { fn extract(&self) -> Result<T, String>; }
Trait for extracting rust value (of type T) from Value type.
Required Methods
fn extract(&self) -> Result<T, String>
Extract the value, returning an Err
if the Value is of the wrong variant.