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 PartialEq for Arg[src]
impl PartialEq for Argfn eq(&self, other: &Arg) -> bool[src]
fn eq(&self, other: &Arg) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Arg) -> bool[src]
fn ne(&self, other: &Arg) -> boolThis method tests for !=.
impl Eq for Arg[src]
impl Eq for Argimpl Encodable for Arg[src]
impl Encodable for Argimpl Decodable for Arg[src]
impl Decodable for Argimpl Hash for Arg[src]
impl Hash for Argfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl 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