pub struct Annotation {
pub kind: AnnotationKind,
pub path: String,
pub span: Span,
}Expand description
A parsed # @… annotation attached to a node (spec/annotations.md).
Fields§
§kind: AnnotationKind§path: StringDotted path of the annotated key (scope path + key; bare key at
root; binding name for lets) — the path-based enforcement
passes (patches, constraints) work on paths.
span: SpanThe annotation comment’s span (diagnostics and LSP).
Trait Implementations§
Source§impl Clone for Annotation
impl Clone for Annotation
Auto Trait Implementations§
impl Freeze for Annotation
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnsafeUnpin for Annotation
impl UnwindSafe for Annotation
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