[][src]Trait ergo_lib::ast::constant::TryExtractFrom

pub trait TryExtractFrom<T>: Sized {
    pub fn try_extract_from(v: T) -> Result<Self, TryExtractFromError>;
}

Extract underlying value if type matches

Required methods

pub fn try_extract_from(v: T) -> Result<Self, TryExtractFromError>[src]

Extract the value or return an error if type does not match

Loading content...

Implementations on Foreign Types

impl TryExtractFrom<Value> for bool[src]

impl TryExtractFrom<Value> for i8[src]

impl TryExtractFrom<Value> for i16[src]

impl TryExtractFrom<Value> for i32[src]

impl TryExtractFrom<Value> for i64[src]

impl<T: TryExtractFrom<Value> + StoredNonPrimitive> TryExtractFrom<Value> for Vec<T>[src]

impl TryExtractFrom<Value> for Vec<i8>[src]

impl TryExtractFrom<Value> for Vec<u8>[src]

impl TryExtractFrom<Value> for Rc<Context>[src]

impl<T: TryExtractFrom<Value>> TryExtractFrom<Value> for Option<T>[src]

impl<TupleElement0: TryExtractFrom<Value>, TupleElement1: TryExtractFrom<Value>> TryExtractFrom<Value> for (TupleElement0, TupleElement1)[src]

impl<TupleElement0: TryExtractFrom<Value>, TupleElement1: TryExtractFrom<Value>, TupleElement2: TryExtractFrom<Value>> TryExtractFrom<Value> for (TupleElement0, TupleElement1, TupleElement2)[src]

impl<TupleElement0: TryExtractFrom<Value>, TupleElement1: TryExtractFrom<Value>, TupleElement2: TryExtractFrom<Value>, TupleElement3: TryExtractFrom<Value>> TryExtractFrom<Value> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3)[src]

Loading content...

Implementors

Loading content...