pub(crate) trait NestedAttributesExt {
// Required method
fn get_word_attr(self, word: Symbol) -> Option<MetaItemInner>;
// Provided method
fn has_word(self, word: Symbol) -> bool
where Self: Sized { ... }
}
Required Methods§
sourcefn get_word_attr(self, word: Symbol) -> Option<MetaItemInner>
fn get_word_attr(self, word: Symbol) -> Option<MetaItemInner>
Returns Some(attr)
if the attribute list contains ‘attr’
corresponding to a specific word