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

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

Extract underlying value if type matches

Required methods

fn try_extract_from(c: T) -> Result<Self, TryExtractFromError>

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

Loading content...

Implementations on Foreign Types

impl TryExtractFrom<ConstantVal> for bool[src]

impl TryExtractFrom<ConstantVal> for i8[src]

impl TryExtractFrom<ConstantVal> for i16[src]

impl TryExtractFrom<ConstantVal> for i32[src]

impl TryExtractFrom<ConstantVal> for i64[src]

impl<T: TryExtractFrom<ConstantVal> + StoredNonPrimitive + LiftIntoSType> TryExtractFrom<Constant> for Vec<T>[src]

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

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

Loading content...

Implementors

Loading content...