Struct syntex_syntax::ast::Arg [] [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 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, __D::Error>

impl Encodable for Arg

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

impl Eq for Arg

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)