syntax_data: {"ast_node_type":"function","tokens":[{"end":50,"kind":"keyword","start":0,"text":"pub"}]}
source_snippet:     pub fn is_trait(self, def_id: DefId) -> bool {
context_before:     /// Returns `true` if `def_id` refers to a trait (i.e., `trait Foo { ... }`).
context_after:         self.def_kind(def_id) == DefKind::Trait