Struct rustc::mir::repr::ArgDecl
[−]
[src]
pub struct ArgDecl<'tcx> {
pub ty: Ty<'tcx>,
pub spread: bool,
pub debug_name: Name,
}Unstable (
rustc_private)A "arg" is one of the function's formal arguments. These are anonymous and distinct from the bindings that the user declares.
For example, in this function:
fn foo((x, y): (i32, u32)) { ... }
there is only one argument, of type (i32, u32), but two bindings
(x and y).
Fields
ty: Ty<'tcx>
Unstable (
rustc_private)spread: bool
Unstable (
rustc_private)If true, this argument is a tuple after monomorphization, and has to be collected from multiple actual arguments.
debug_name: Name
Unstable (
rustc_private)Either keywords::Invalid or the name of a single-binding pattern associated with this argument. Useful for debuginfo.
Trait Implementations
Derived Implementations
impl<'tcx> Decodable for ArgDecl<'tcx>[src]
impl<'tcx> Encodable for ArgDecl<'tcx>[src]
impl<'tcx> Debug for ArgDecl<'tcx>[src]
impl<'tcx> Clone for ArgDecl<'tcx>[src]
fn clone(&self) -> ArgDecl<'tcx>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more