pub fn is_self(d: ast::Def) -> bool {
  match d {
    DefSelf(..)           => true,
    DefUpvar(_, d, _, _) => is_self(*d),
    _                     => false
  }
}
/* True if d is either a def_self, or a chain of def_upvars
 referring to a def_self */
True if d is either a def_self, or a chain of def_upvars
referring to a def_self
True if d is either a def_self or a chain of def_upvars referring to a def_self
pub fn is_self(d: ast::Def) -> bool {
  match d {
    DefSelf(..)           => true,
    DefUpvar(_, d, _, _) => is_self(*d),
    _                     => false
  }
}
pub fn is_self ( d : ast :: Def ) -> bool { match d { DefSelf ( .. ) => true , DefUpvar ( _ , d , _ , _ ) => is_self ( * d ) , _ => false } }
True if d is either a def_self, or a chain of def_upvars
referring to a def_self
True if d is either a def_self or a chain of def_upvars referring to a def_self
d
ast::Def
d
ast::Def