Enum rustc::traits::error_reporting::ArgKind[][src]

pub enum ArgKind {
    Arg(StringString),
    Tuple(Option<Span>, Vec<(String, String)>),
}
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Summarizes information

Variants

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

An argument of non-tuple type. Parameters are (name, ty)

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

An argument of tuple type. For a "found" argument, the span is the locationo in the source of the pattern. For a "expected" argument, it will be None. The vector is a list of (name, ty) strings for the components of the tuple.

Methods

impl ArgKind
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Creates an ArgKind from the expected type of an argument. This has no name (_) and no source spans..

Auto Trait Implementations

impl !Send for ArgKind

impl !Sync for ArgKind