pub enum AttributeBody {
Semicolon,
Brace {
elements: Vec<Node<AttributeBodyElement>>,
},
}Expand description
Body of an attribute (def or usage): ; or { AttributeBodyElement* }.
Variants§
Trait Implementations§
Source§impl Clone for AttributeBody
impl Clone for AttributeBody
Source§fn clone(&self) -> AttributeBody
fn clone(&self) -> AttributeBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AttributeBody
impl Debug for AttributeBody
impl Eq for AttributeBody
Source§impl PartialEq for AttributeBody
impl PartialEq for AttributeBody
Source§fn eq(&self, other: &AttributeBody) -> bool
fn eq(&self, other: &AttributeBody) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AttributeBody
Auto Trait Implementations§
impl Freeze for AttributeBody
impl RefUnwindSafe for AttributeBody
impl Send for AttributeBody
impl Sync for AttributeBody
impl Unpin for AttributeBody
impl UnsafeUnpin for AttributeBody
impl UnwindSafe for AttributeBody
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