[−][src]Struct rustc_mir_build::thir::pattern::const_to_pat::fallback_to_const_ref::FallbackToConstRef
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.
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
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,