pub(super) struct FallbackToConstRef(());
Expand description

This error type signals that we encountered a non-struct-eq situation behind a reference. We bubble this up in order to get back to the reference destructuring and make that emit a const pattern instead of a deref pattern. This allows us to simply call PartialEq::eq on such patterns (since that function takes a reference) and not have to jump through any hoops to get a reference to the value.

Tuple Fields

0: ()

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Layout

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: 0 bytes