pub enum MemberAst {
Value {
name: String,
opt: bool,
ty: TypeAst,
dflt: Option<Rc<Expr>>,
loc: Option<Loc>,
},
Derived {
name: String,
ty: Option<TypeAst>,
expr: Rc<Expr>,
hidden: bool,
loc: Option<Loc>,
},
Context {
variable: String,
ty: TypeAst,
loc: Option<Loc>,
},
Assert {
name: String,
cond: Rc<Expr>,
tail: Option<Tail>,
loc: Option<Loc>,
},
When {
cond: Rc<Expr>,
body: Vec<MemberAst>,
loc: Option<Loc>,
},
}Variants§
Value
Derived
hidden: x$ = e — computed for the schema’s own use, never part of the value (D34)
Context
Assert
When
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MemberAst
impl !Send for MemberAst
impl !Sync for MemberAst
impl !UnwindSafe for MemberAst
impl Freeze for MemberAst
impl Unpin for MemberAst
impl UnsafeUnpin for MemberAst
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