pub struct Clause {
pub pats: Vec<Pat>,
pub rhs: Rhs,
pub wheres: Vec<Decl>,
pub span: Span,
}Expand description
A clause in a function binding.
Fields§
§pats: Vec<Pat>The patterns for arguments.
rhs: RhsThe right-hand side.
wheres: Vec<Decl>Local bindings.
span: SpanThe span.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Clause
impl RefUnwindSafe for Clause
impl Send for Clause
impl Sync for Clause
impl Unpin for Clause
impl UnsafeUnpin for Clause
impl UnwindSafe for Clause
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