pub fn lookup_variant(&self, name: &Ident) -> Option<&(RcExpr, RcType)> {
        match *self.inner {
            Type::Cond(_, ref options) => lookup_field(options, name),
            _ => None,
        }
    }
/// Attempt to lookup the type of a variant
///
/// Returns `None` if the type is not a union or the field is not
/// present in the union.
Attempt to lookup the type of a variant
Returns `None` if the type is not a union or the field is not
present in the union.
Attempt to lookup the type of a variant Returns ` None ` if the type is not a union or the field is not present in the union .
pub fn lookup_variant(&self, name: &Ident) -> Option<&(RcExpr, RcType)> {
        match *self.inner {
            Type::Cond(_, ref options) => lookup_field(options, name),
            _ => None,
        }
    }
pub fn lookup_variant ( & self , name : & Ident ) -> Option < & ( RcExpr , RcType ) > { match * self . inner { Type :: Cond ( _ , ref options ) => lookup_field ( options , name ) , _ => None , } }
Attempt to lookup the type of a variant
Returns `None` if the type is not a union or the field is not
present in the union.
Attempt to lookup the type of a variant Returns ` None ` if the type is not a union or the field is not present in the union .
&self
name
&Ident
&self
name
&Ident