pub fn article_and_description(&self, def_id: DefId) -> (&'static str, &'static str) {
        match self.def_kind(def_id) {
            DefKind::Generator => match self.generator_kind(def_id).unwrap() {
                rustc_hir::GeneratorKind::Async(..) => ("an", "async closure"),
                rustc_hir::GeneratorKind::Gen => ("a", "generator"),
            },
            def_kind => (def_kind.article(), def_kind.descr(def_id)),
        }
    }
/// Returns a displayable description and article for the given `def_id` (e.g. `("a", "struct")`).
Returns a displayable description and article for the given `def_id` `).
Returns a displayable description and article for the given ` def_id ` ` ) .
pub fn article_and_description(&self, def_id: DefId) -> (&'static str, &'static str) {
        match self.def_kind(def_id) {
            DefKind::Generator => match self.generator_kind(def_id).unwrap() {
                rustc_hir::GeneratorKind::Async(..) => ("an", "async closure"),
                rustc_hir::GeneratorKind::Gen => ("a", "generator"),
            },
            def_kind => (def_kind.article(), def_kind.descr(def_id)),
        }
    }
pub fn article_and_description ( & self , def_id : DefId ) -> ( & ' static str , & ' static str ) { match self . def_kind ( def_id ) { DefKind :: Generator => match self . generator_kind ( def_id ) . unwrap ( ) { rustc_hir :: GeneratorKind :: Async ( .. ) => ( " " , " " ) , rustc_hir :: GeneratorKind :: Gen => ( " " , " " ) , } , def_kind => ( def_kind . article ( ) , def_kind . descr ( def_id ) ) , } }
Returns a displayable description and article for the given `def_id` (e.g.
Returns a displayable description and article for the given ` def_id ` ( e . g .
&self
def_id
DefId
&self
def_id
DefId