[−][src]Struct rustc_middle::infer::unify_key::ConstVarValue

pub struct ConstVarValue<'tcx> {
    pub origin: ConstVariableOrigin,
    pub val: ConstVariableValue<'tcx>,
}

Fields

origin: ConstVariableOriginval: ConstVariableValue<'tcx>

Trait Implementations

impl<'tcx> Clone for ConstVarValue<'tcx>[src]

impl<'tcx> Copy for ConstVarValue<'tcx>[src]

impl<'tcx> Debug for ConstVarValue<'tcx>[src]

impl<'tcx> UnifyValue for ConstVarValue<'tcx>[src]

type Error = (&'tcx Const<'tcx>, &'tcx Const<'tcx>)

Defines the type to return when merging of two values fails. If merging is infallible, use the special struct NoError found in this crate, which unlocks various more convenient methods on the unification table. Read more

Auto Trait Implementations

impl<'tcx> !RefUnwindSafe for ConstVarValue<'tcx>

impl<'tcx> !Send for ConstVarValue<'tcx>

impl<'tcx> !Sync for ConstVarValue<'tcx>

impl<'tcx> Unpin for ConstVarValue<'tcx>

impl<'tcx> !UnwindSafe for ConstVarValue<'tcx>

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<'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> MaybeResult<T> for T[src]

type Error = !

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]