Struct syntax::ast::ArgUnstable [-] [+] [src]

pub struct Arg {
    pub ty: P<Ty>,
    pub pat: P<Pat>,
    pub id: NodeId,
}

represents an argument in a function header

Fields

ty
pat
id

Methods

impl Arg

fn new_self(span: Span, mutability: Mutability, self_ident: Ident) -> Arg

Trait Implementations

impl ToSource for Arg

fn to_source(&self) -> String

impl ToTokens for Arg

fn to_tokens(&self, cx: &ExtCtxt) -> Vec<TokenTree>

Derived Implementations

impl Debug for Arg

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for Arg

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Decodable for Arg

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Arg, Error>

impl Encodable for Arg

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), Error>

impl Eq for Arg

fn assert_receiver_is_total_eq(&self)

impl PartialEq for Arg

fn eq(&self, __arg_0: &Arg) -> bool

fn ne(&self, __arg_0: &Arg) -> bool

impl Clone for Arg

fn clone(&self) -> Arg

fn clone_from(&mut self, source: &Self)