pub struct Rule {
pub name: QualifiedIdent,
pub pats: Vec<Box<Pat>>,
pub body: Box<Expr>,
pub range: Range,
}
Expand description
A rule is a equation that in the left-hand-side contains a list of patterns @pats@ and on the right hand side a value.
Fields§
§name: QualifiedIdent
§pats: Vec<Box<Pat>>
§body: Box<Expr>
§range: Range
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
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