pub struct AppliedAnnotation {
pub name: String,
pub definition: Ref<AnnotationDefNode>,
pub arguments: Vec<AppliedArgument>,
}Expand description
One annotation applied to a node.
Fields§
§name: StringThe name as written, without the @.
Kept alongside the reference: the declaration may arrive after the use, and a diagnostic has to name the annotation either way.
definition: Ref<AnnotationDefNode>The declaration this applies, once it is known.
arguments: Vec<AppliedArgument>Arguments in the order they were written.
Trait Implementations§
Source§impl Clone for AppliedAnnotation
impl Clone for AppliedAnnotation
Source§impl Debug for AppliedAnnotation
impl Debug for AppliedAnnotation
impl Eq for AppliedAnnotation
Source§impl PartialEq for AppliedAnnotation
impl PartialEq for AppliedAnnotation
impl StructuralPartialEq for AppliedAnnotation
Auto Trait Implementations§
impl Freeze for AppliedAnnotation
impl RefUnwindSafe for AppliedAnnotation
impl Send for AppliedAnnotation
impl Sync for AppliedAnnotation
impl Unpin for AppliedAnnotation
impl UnsafeUnpin for AppliedAnnotation
impl UnwindSafe for AppliedAnnotation
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