pub enum BlockItemKind {
Clause {
keyword: String,
value: Expr,
},
Assignment {
name: Ident,
value: Expr,
},
ParamAssignment {
name: Ident,
params: Vec<Ident>,
value: Expr,
},
Let {
name: Ident,
value: Expr,
},
EnumVariant {
name: Ident,
},
ForBlock {
binding: Ident,
collection: Expr,
filter: Option<Expr>,
items: Vec<BlockItem>,
},
OpenQuestion {
text: StringLiteral,
},
}Variants§
Clause
keyword: value — when:, requires:, ensures:, facing:, etc.
Assignment
name: value — field, relationship, projection, derived value.
ParamAssignment
name(params): value — parameterised derived value.
Let
let name = value
EnumVariant
Bare name inside an enum body — pending, shipped, etc.
ForBlock
for binding in collection [where filter]: ... at block level (rule iteration)
OpenQuestion
open question "text" (nested within a block)
Fields
§
text: StringLiteralTrait Implementations§
Source§impl Clone for BlockItemKind
impl Clone for BlockItemKind
Source§fn clone(&self) -> BlockItemKind
fn clone(&self) -> BlockItemKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BlockItemKind
impl RefUnwindSafe for BlockItemKind
impl Send for BlockItemKind
impl Sync for BlockItemKind
impl Unpin for BlockItemKind
impl UnsafeUnpin for BlockItemKind
impl UnwindSafe for BlockItemKind
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