pub enum LambdaParams {
List {
paren_span: (Span, Span),
params: Vec<LambdaParam>,
},
IdentList {
paren_span: (Span, Span),
idents: Vec<Ident>,
},
Single(Ident),
}Expand description
Lambda parameters.
Variants§
List
(Type name, Type name, ...)
IdentList
(name, name, ...) (inferred types)
Single(Ident)
name (single inferred parameter)
Trait Implementations§
Source§impl Clone for LambdaParams
impl Clone for LambdaParams
Source§fn clone(&self) -> LambdaParams
fn clone(&self) -> LambdaParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LambdaParams
impl Debug for LambdaParams
impl Eq for LambdaParams
Source§impl Hash for LambdaParams
impl Hash for LambdaParams
Source§impl PartialEq for LambdaParams
impl PartialEq for LambdaParams
Source§fn eq(&self, other: &LambdaParams) -> bool
fn eq(&self, other: &LambdaParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LambdaParams
Auto Trait Implementations§
impl Freeze for LambdaParams
impl RefUnwindSafe for LambdaParams
impl Send for LambdaParams
impl Sync for LambdaParams
impl Unpin for LambdaParams
impl UnsafeUnpin for LambdaParams
impl UnwindSafe for LambdaParams
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