pub struct Binding {
pub pat: Pat,
pub params: Vec<Pat>,
pub expr: Expr,
pub pos: Pos,
pub span: Span,
}Fields§
§pat: PatLeft-hand side: a variable with parameters, or a destructuring pattern.
params: Vec<Pat>Parameter patterns when the LHS is a function binding (f x y = ...).
expr: ExprRight-hand-side expression.
pos: PosPosition of the binding’s first token.
span: SpanSpan of the whole binding.
Trait Implementations§
impl Eq for Binding
impl StructuralPartialEq for Binding
Auto Trait Implementations§
impl Freeze for Binding
impl RefUnwindSafe for Binding
impl Send for Binding
impl Sync for Binding
impl Unpin for Binding
impl UnsafeUnpin for Binding
impl UnwindSafe for Binding
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