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 Arg
pub 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) -> bool
pub fn from_self(eself: ExplicitSelf, eself_ident: Ident) -> Arg
[src]
pub fn from_self(eself: ExplicitSelf, eself_ident: Ident) -> Arg
Trait Implementations
impl Clone for Arg
[src]
impl Clone for Arg
fn clone(&self) -> Arg
[src]
fn clone(&self) -> Arg
Returns 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 Arg
impl Decodable for Arg
[src]
impl Decodable for Arg
impl Debug for Arg
[src]
impl Debug for Arg
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl ToTokens for Arg
[src]
impl ToTokens for Arg