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§
Source§impl Clone for AssertItem
impl Clone for AssertItem
Source§fn clone(&self) -> AssertItem
fn clone(&self) -> AssertItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for AssertItem
impl !Send for AssertItem
impl !Sync for AssertItem
impl !UnwindSafe for AssertItem
impl Freeze 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