[−][src]Struct rustc_mir_build::thir::pattern::const_to_pat::fallback_to_const_ref::FallbackToConstRef

pub(in thir::pattern::const_to_pat) struct 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

impl Debug for FallbackToConstRef[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.