Trait ergotree_ir::mir::constant::TryExtractFrom[][src]

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

Extract underlying value if type matches

Required methods

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> + StoreWrapped> TryExtractFrom<Value> for Vec<T>[src]

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

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

impl TryExtractFrom<Value> for BigInt[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...