pub enum Binding {
Positional(Box<Expr>),
Named(Range, Ident, Box<Expr>),
}
Expand description
A binding express the positional or named argument of a constructor or function.
Variants§
Implementations§
Source§impl Binding
impl Binding
pub fn to_app_binding(&self) -> AppBinding
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Binding
impl RefUnwindSafe for Binding
impl Send for Binding
impl Sync for Binding
impl Unpin 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