pub enum AnnotationKind {
Intent(String),
Constraint {
source: String,
expr: NodeId,
},
AiImmutable(bool),
}Expand description
Annotation payloads (spec/annotations.md §2–§4).
Variants§
Intent(String)
Documentation only, never enforced.
Constraint
Boolean predicate with value bound to the annotated value.
source is the raw payload (quoted in T006); expr is the
parsed tree with value rewritten to the annotated node.
AiImmutable(bool)
Agent-immutable flag; false behaves as no annotation.
Trait Implementations§
Source§impl Clone for AnnotationKind
impl Clone for AnnotationKind
Auto Trait Implementations§
impl Freeze for AnnotationKind
impl RefUnwindSafe for AnnotationKind
impl Send for AnnotationKind
impl Sync for AnnotationKind
impl Unpin for AnnotationKind
impl UnsafeUnpin for AnnotationKind
impl UnwindSafe for AnnotationKind
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