Struct syntax::ast::Arg  [−][src]
An argument in a function header.
E.g. bar: usize as in fn foo(bar: usize)
Fields
ty: P<Ty>
                           
                           
                           
                           pat: P<Pat>
                           
                           
                           
                           id: NodeId
                           
                    Methods
impl Arg[src] 
impl Argpub fn to_self(&self) -> Option<ExplicitSelf>[src] 
pub fn to_self(&self) -> Option<ExplicitSelf>pub fn is_self(&self) -> bool[src] 
pub fn is_self(&self) -> boolpub fn from_self(eself: ExplicitSelf, eself_ident: Ident) -> Arg[src] 
pub fn from_self(eself: ExplicitSelf, eself_ident: Ident) -> ArgTrait Implementations
impl Clone for Arg[src] 
impl Clone for Argfn clone(&self) -> Arg[src] 
fn clone(&self) -> ArgReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src] 
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Encodable for Arg[src] 
impl Encodable for Argimpl Decodable for Arg[src] 
impl Decodable for Argimpl Debug for Arg[src] 
impl Debug for Argfn fmt(&self, f: &mut Formatter) -> Result[src] 
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl ToTokens for Arg[src] 
impl ToTokens for Arg