Enum rustc_trait_selection::traits::TraitQueryMode[−][src]

pub enum TraitQueryMode {
    Standard,
    Canonical,
}

The mode that trait queries run in.

Variants

Standard

Standard/un-canonicalized queries get accurate spans etc. passed in and hence can do reasonable error reporting on their own.

Canonical

Canonicalized queries get dummy spans and hence must generally propagate errors to pre-canonicalization callsites.

Trait Implementations

impl Clone for TraitQueryMode[src]

impl Copy for TraitQueryMode[src]

impl Debug for TraitQueryMode[src]

impl Eq for TraitQueryMode[src]

impl PartialEq<TraitQueryMode> for TraitQueryMode[src]

impl StructuralEq for TraitQueryMode[src]

impl StructuralPartialEq for TraitQueryMode[src]

Auto Trait Implementations

impl RefUnwindSafe for TraitQueryMode

impl Send for TraitQueryMode

impl Sync for TraitQueryMode

impl Unpin for TraitQueryMode

impl UnwindSafe for TraitQueryMode

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
    T: Copy, 
[src]

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

impl<T> BorrowMut<T> 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> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<T> WithConstness for T[src]