pub enum AttrTree {
Marker,
Valued {
equal: Punct,
value: TokenTree,
},
Container {
group: Delimiter,
nodes: Vec<AttrNode>,
tailfish: bool,
},
}Expand description
data of an attribute node
Variants§
Marker
a non-valued attribute
e.g. #[attr(foo)]
Valued
a valued attribute
has a given value as a TokenTree
e.g. #[attr(foo=10)] or #[attr(foo=(10 + 10))]
Container
a container attribute
has multiple descendants
e.g. #[attr(foo(bar))] or #[attr(foo::bar)]
Auto Trait Implementations§
impl Freeze for AttrTree
impl RefUnwindSafe for AttrTree
impl !Send for AttrTree
impl !Sync for AttrTree
impl Unpin for AttrTree
impl UnwindSafe for AttrTree
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more