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

pub enum PatFieldsRest {
    Rest,
    Recovered(ErrorGuaranteed),
    None,
}

Expand description

Whether the .. is present in a struct fields pattern.

§

module::StructName { field, ..}

§

module::StructName { field, syntax error }

§

module::StructName { field }

§

§

§

§

§

§

§

§

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: 1 byte

Size for each variant: