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

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

Extract underlying value if type matches

Required methods

pub 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<T: TryExtractFrom<Value> + 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

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

Loading content...