pub struct ExtensionDefinition {
pub name: String,
pub category: String,
pub members: Vec<ExtensionMember>,
pub loc: Loc,
pub leading_trivia: Vec<Trivia>,
pub trailing_trivia: Vec<Trivia>,
}Expand description
extension Name { category: effects|scan, members: [ "x" : { … }, … ] }
v2.5.0. A first-class, auditable + gateable declaration that expands a closed catalog with adopter-specific PROVENANCE members. Soundness invariants (validated in v2.5.0/v2.5.0): members are provenance-class only (never the enforceable effect set), must not shadow a canonical base/category, and ride in the IR + proof bundle so an independent PCC verifier re-derives against the same artifact.
Fields§
§name: String§category: Stringeffects | scan — validated against the closed category set
in v2.5.0 (the type-checker), not the parser.
members: Vec<ExtensionMember>§loc: Loc§leading_trivia: Vec<Trivia>v1.5.2 — leading comment trivia. Empty by default.
trailing_trivia: Vec<Trivia>v1.5.2 — trailing comment trivia. Empty by default.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExtensionDefinition
impl RefUnwindSafe for ExtensionDefinition
impl Send for ExtensionDefinition
impl Sync for ExtensionDefinition
impl Unpin for ExtensionDefinition
impl UnsafeUnpin for ExtensionDefinition
impl UnwindSafe for ExtensionDefinition
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