Enum rustc_parse::parser::pat::EatOrResult [−][src]
enum EatOrResult {
TrailingVert,
AteOr,
None,
}Expand description
The result of eat_or_separator. We want to distinguish which case we are in to avoid
emitting duplicate diagnostics.
Variants
We recovered from a trailing vert.
We ate an | (or || and recovered).
We did not eat anything (i.e. the current token is not | or ||).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for EatOrResultimpl Send for EatOrResultimpl Sync for EatOrResultimpl Unpin for EatOrResultimpl UnwindSafe for EatOrResultBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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