Param in rustc_ast::ast - Rust (original) (raw)

pub struct Param {
    pub attrs: AttrVec,
    pub ty: Box<Ty>,
    pub pat: Box<Pat>,
    pub id: NodeId,
    pub span: Span,
    pub is_placeholder: bool,
}

Expand description

A parameter in a function header.

E.g., bar: usize as in fn foo(bar: usize).

Source§

Source

Attempts to cast parameter to ExplicitSelf.

Source

Returns true if parameter is self.

Source

Builds a Param object from ExplicitSelf.

§

§

§

§

§

§

§

§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 40 bytes