pub struct AssertItem {
pub when: bool,
pub name: String,
pub cond: Rc<Expr>,
pub tail: Option<Tail>,
pub body: Vec<MemberAst>,
pub origin: Option<String>,
pub menv: Option<Rc<Env>>,
}Expand description
an assertion or a guarded group of a record type
Fields§
§when: boolwhether it is a when group
name: Stringthe name
cond: Rc<Expr>the condition
tail: Option<Tail>the else tail
body: Vec<MemberAst>the members, for a group
origin: Option<String>the type declaring it, for the id
menv: Option<Rc<Env>>the module environment
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AssertItem
impl !Send for AssertItem
impl !Sync for AssertItem
impl !UnwindSafe for AssertItem
impl Forget for AssertItem
impl Freeze for AssertItem
impl Move for AssertItem
impl Unpin for AssertItem
impl UnsafeUnpin for AssertItem
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