pub struct Equation {
pub params: Vec<Pat>,
pub body: Expr,
pub guards: Vec<(Expr, Expr)>,
pub where_bindings: Vec<Binding>,
pub pos: Pos,
pub span: Span,
}Fields§
§params: Vec<Pat>§body: Expr§guards: Vec<(Expr, Expr)>Guarded equations keep their guards as (guard, body) pairs; body
then holds the first guarded body for convenience.
where_bindings: Vec<Binding>where helper bindings attached to this equation.
pos: Pos§span: SpanTrait Implementations§
impl Eq for Equation
impl StructuralPartialEq for Equation
Auto Trait Implementations§
impl Freeze for Equation
impl RefUnwindSafe for Equation
impl Send for Equation
impl Sync for Equation
impl Unpin for Equation
impl UnsafeUnpin for Equation
impl UnwindSafe for Equation
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