pub enum RequirementDefBodyElement {
Error(Node<ParseErrorNode>),
Other(String),
Annotation(Node<Annotation>),
Import(Node<Import>),
SubjectDecl(Node<SubjectDecl>),
AttributeDef(Node<AttributeDef>),
AttributeUsage(Node<AttributeUsage>),
RequireConstraint(Node<RequireConstraint>),
Frame(Node<FrameMember>),
Doc(Node<DocComment>),
}Variants§
Error(Node<ParseErrorNode>)
Other(String)
Unmodeled requirement-body element captured as raw text (used for library parsing).
Annotation(Node<Annotation>)
Import(Node<Import>)
SubjectDecl(Node<SubjectDecl>)
AttributeDef(Node<AttributeDef>)
AttributeUsage(Node<AttributeUsage>)
RequireConstraint(Node<RequireConstraint>)
Frame(Node<FrameMember>)
Doc(Node<DocComment>)
Trait Implementations§
Source§impl Clone for RequirementDefBodyElement
impl Clone for RequirementDefBodyElement
Source§fn clone(&self) -> RequirementDefBodyElement
fn clone(&self) -> RequirementDefBodyElement
Returns a duplicate of the value. Read more
1.0.0 · 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 RequirementDefBodyElement
impl Debug for RequirementDefBodyElement
impl Eq for RequirementDefBodyElement
impl StructuralPartialEq for RequirementDefBodyElement
Auto Trait Implementations§
impl Freeze for RequirementDefBodyElement
impl RefUnwindSafe for RequirementDefBodyElement
impl Send for RequirementDefBodyElement
impl Sync for RequirementDefBodyElement
impl Unpin for RequirementDefBodyElement
impl UnsafeUnpin for RequirementDefBodyElement
impl UnwindSafe for RequirementDefBodyElement
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