pub enum FormalParameter {
Normal {
modifiers: Vec<Modifier>,
ty: Type,
name: Option<Ident>,
},
VarArgs {
modifiers: Vec<Modifier>,
ty: Type,
ellipsis_span: Span,
name: Option<Ident>,
},
}Expand description
A formal parameter of a method or constructor.
Variants§
Trait Implementations§
Source§impl Clone for FormalParameter
impl Clone for FormalParameter
Source§fn clone(&self) -> FormalParameter
fn clone(&self) -> FormalParameter
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 FormalParameter
impl Debug for FormalParameter
Source§impl Hash for FormalParameter
impl Hash for FormalParameter
Source§impl PartialEq for FormalParameter
impl PartialEq for FormalParameter
Source§fn eq(&self, other: &FormalParameter) -> bool
fn eq(&self, other: &FormalParameter) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for FormalParameter
impl StructuralPartialEq for FormalParameter
Auto Trait Implementations§
impl Freeze for FormalParameter
impl RefUnwindSafe for FormalParameter
impl Send for FormalParameter
impl Sync for FormalParameter
impl Unpin for FormalParameter
impl UnsafeUnpin for FormalParameter
impl UnwindSafe for FormalParameter
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