pub struct AnnotationDefNode {
pub node_id: NodeId,
pub name: String,
pub module: Id<ModuleNode>,
pub members: Vec<Id<AnnotationMemberNode>>,
pub facets: Facets,
}Expand description
An @annotation declaration. Spec §3.6.
Built-in annotations are ordinary declarations in the builtin module, so user-defined and built-in annotations traverse identically.
Fields§
§node_id: NodeIdStable identity.
name: StringSimple name, without the @.
module: Id<ModuleNode>Enclosing module.
members: Vec<Id<AnnotationMemberNode>>Members in declaration order.
facets: FacetsPer-source information. Spec §4.
Trait Implementations§
Source§impl Clone for AnnotationDefNode
impl Clone for AnnotationDefNode
Source§impl Debug for AnnotationDefNode
impl Debug for AnnotationDefNode
impl Eq for AnnotationDefNode
Source§impl PartialEq for AnnotationDefNode
impl PartialEq for AnnotationDefNode
impl StructuralPartialEq for AnnotationDefNode
Auto Trait Implementations§
impl Freeze for AnnotationDefNode
impl RefUnwindSafe for AnnotationDefNode
impl Send for AnnotationDefNode
impl Sync for AnnotationDefNode
impl Unpin for AnnotationDefNode
impl UnsafeUnpin for AnnotationDefNode
impl UnwindSafe for AnnotationDefNode
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