Struct item::Arg
[−]
[src]
pub struct Arg { pub pat: Option<Ident>, pub ty: Ty, }
An argument in a function header.
E.g. bar: usize
as in fn foo(bar: usize)
Fields
pat: Option<Ident>
ty: Ty
Trait Implementations
impl PartialEq for Arg
[src]
fn eq(&self, __arg_0: &Arg) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Arg) -> bool
This method tests for !=
.
impl Eq for Arg
[src]
impl Clone for Arg
[src]
fn clone(&self) -> Arg
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more