pub(crate) trait NestedAttributesExt {
    // Required method
    fn get_word_attr(self, word: Symbol) -> Option<NestedMetaItem>;

    // Provided method
    fn has_word(self, word: Symbol) -> bool
       where Self: Sized { ... }
}

Required Methods§

source

fn get_word_attr(self, word: Symbol) -> Option<NestedMetaItem>

Returns Some(attr) if the attribute list contains ‘attr’ corresponding to a specific word

Provided Methods§

source

fn has_word(self, word: Symbol) -> boolwhere Self: Sized,

Returns true if the attribute list contains a specific word

Implementors§