pub fn take_attributes(&mut self) -> Vec<ast::Attribute> {
        use std::mem::take;

        match self {
            Self::Use(item) => take(&mut item.attributes),
            Self::Fn(item) => take(&mut item.attributes),
            Self::Enum(item) => take(&mut item.attributes),
            Self::Struct(item) => take(&mut item.attributes),
            Self::Impl(item) => take(&mut item.attributes),
            Self::Mod(item) => take(&mut item.attributes),
            Self::Const(item) => take(&mut item.attributes),
            Self::MacroCall(item) => take(&mut item.attributes),
        }
    }
/// Take the attributes associated with the item.
Take the attributes associated with the item.
Take the attributes associated with the item .
pub fn take_attributes(&mut self) -> Vec<ast::Attribute> {
        use std::mem::take;
        match self {
            Self::Use(item) => take(&mut item.attributes),
            Self::Fn(item) => take(&mut item.attributes),
            Self::Enum(item) => take(&mut item.attributes),
            Self::Struct(item) => take(&mut item.attributes),
            Self::Impl(item) => take(&mut item.attributes),
            Self::Mod(item) => take(&mut item.attributes),
            Self::Const(item) => take(&mut item.attributes),
            Self::MacroCall(item) => take(&mut item.attributes),
        }
    }
pub fn take_attributes ( & mut self ) -> Vec < ast :: Attribute > { use std :: mem :: take ; match self { Self :: Use ( item ) => take ( & mut item . attributes ) , Self :: Fn ( item ) => take ( & mut item . attributes ) , Self :: Enum ( item ) => take ( & mut item . attributes ) , Self :: Struct ( item ) => take ( & mut item . attributes ) , Self :: Impl ( item ) => take ( & mut item . attributes ) , Self :: Mod ( item ) => take ( & mut item . attributes ) , Self :: Const ( item ) => take ( & mut item . attributes ) , Self :: MacroCall ( item ) => take ( & mut item . attributes ) , } }
Take the attributes associated with the item.
Take the attributes associated with the item .
&mut self
&mut self