Struct rustc_mir_build::thir::pattern::const_to_pat::FallbackToConstRef
source · struct FallbackToConstRef;Expand description
This error type signals that we encountered a non-struct-eq situation.
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.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for FallbackToConstRef
impl Send for FallbackToConstRef
impl Sync for FallbackToConstRef
impl Unpin for FallbackToConstRef
impl UnwindSafe for FallbackToConstRef
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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