CommaRecoveryMode in rustc_parse::parser - Rust (original) (raw)

Enum CommaRecoveryMode

Source

pub enum CommaRecoveryMode {
    LikelyTuple,
    EitherTupleOrPipe,
}

Expand description

Whether or not to recover a a, b when parsing patterns as (a, b) or that and a | b.

§

§

Source§

Source§

Source§

Tests for self and other values to be equal, and is used by ==.

1.0.0 · Source§

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Source§

Source§

§

§

§

§

§

§

§

§

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: