pub enum OccurrenceBodyElement {
Error(Node<ParseErrorNode>),
Doc(Node<DocComment>),
Annotation(Node<Annotation>),
AssertConstraint(Node<AssertConstraintMember>),
Other(String),
AttributeUsage(Node<AttributeUsage>),
PartUsage(Box<Node<PartUsage>>),
OccurrenceUsage(Box<Node<OccurrenceUsage>>),
}Variants§
Error(Node<ParseErrorNode>)
Doc(Node<DocComment>)
Annotation(Node<Annotation>)
AssertConstraint(Node<AssertConstraintMember>)
Other(String)
AttributeUsage(Node<AttributeUsage>)
PartUsage(Box<Node<PartUsage>>)
OccurrenceUsage(Box<Node<OccurrenceUsage>>)
Trait Implementations§
Source§impl Clone for OccurrenceBodyElement
impl Clone for OccurrenceBodyElement
Source§fn clone(&self) -> OccurrenceBodyElement
fn clone(&self) -> OccurrenceBodyElement
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 OccurrenceBodyElement
impl Debug for OccurrenceBodyElement
Source§impl PartialEq for OccurrenceBodyElement
impl PartialEq for OccurrenceBodyElement
Source§fn eq(&self, other: &OccurrenceBodyElement) -> bool
fn eq(&self, other: &OccurrenceBodyElement) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for OccurrenceBodyElement
impl StructuralPartialEq for OccurrenceBodyElement
Auto Trait Implementations§
impl Freeze for OccurrenceBodyElement
impl RefUnwindSafe for OccurrenceBodyElement
impl Send for OccurrenceBodyElement
impl Sync for OccurrenceBodyElement
impl Unpin for OccurrenceBodyElement
impl UnsafeUnpin for OccurrenceBodyElement
impl UnwindSafe for OccurrenceBodyElement
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