Struct rustc_middle::traits::InternedObligationCauseCode
source · [−]pub struct InternedObligationCauseCode<'tcx> {
code: Option<Lrc<ObligationCauseCode<'tcx>>>,
}Fields
code: Option<Lrc<ObligationCauseCode<'tcx>>>None for ObligationCauseCode::MiscObligation (a common case, occurs ~60% of
the time). Some otherwise.
Methods from Deref<Target = ObligationCauseCode<'tcx>>
pub fn peel_derives(&self) -> &Self
pub fn parent(&self) -> Option<(&Self, Option<PolyTraitPredicate<'tcx>>)>
Trait Implementations
sourceimpl<'tcx> Clone for InternedObligationCauseCode<'tcx>
impl<'tcx> Clone for InternedObligationCauseCode<'tcx>
sourcefn clone(&self) -> InternedObligationCauseCode<'tcx>
fn clone(&self) -> InternedObligationCauseCode<'tcx>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'tcx> Debug for InternedObligationCauseCode<'tcx>
impl<'tcx> Debug for InternedObligationCauseCode<'tcx>
sourceimpl<'tcx> Default for InternedObligationCauseCode<'tcx>
impl<'tcx> Default for InternedObligationCauseCode<'tcx>
sourcefn default() -> InternedObligationCauseCode<'tcx>
fn default() -> InternedObligationCauseCode<'tcx>
Returns the “default value” for a type. Read more
sourceimpl<'tcx> Deref for InternedObligationCauseCode<'tcx>
impl<'tcx> Deref for InternedObligationCauseCode<'tcx>
type Target = ObligationCauseCode<'tcx>
type Target = ObligationCauseCode<'tcx>
The resulting type after dereferencing.
sourceimpl<'tcx> Hash for InternedObligationCauseCode<'tcx>
impl<'tcx> Hash for InternedObligationCauseCode<'tcx>
sourceimpl<'tcx, '__lifted> Lift<'__lifted> for InternedObligationCauseCode<'tcx>
impl<'tcx, '__lifted> Lift<'__lifted> for InternedObligationCauseCode<'tcx>
type Lifted = InternedObligationCauseCode<'__lifted>
fn lift_to_tcx(
self,
__tcx: TyCtxt<'__lifted>
) -> Option<InternedObligationCauseCode<'__lifted>>
sourceimpl<'tcx> PartialEq<InternedObligationCauseCode<'tcx>> for InternedObligationCauseCode<'tcx>
impl<'tcx> PartialEq<InternedObligationCauseCode<'tcx>> for InternedObligationCauseCode<'tcx>
sourcefn eq(&self, other: &InternedObligationCauseCode<'tcx>) -> bool
fn eq(&self, other: &InternedObligationCauseCode<'tcx>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &InternedObligationCauseCode<'tcx>) -> bool
fn ne(&self, other: &InternedObligationCauseCode<'tcx>) -> bool
This method tests for !=.
impl<'tcx> Eq for InternedObligationCauseCode<'tcx>
impl<'tcx> StructuralEq for InternedObligationCauseCode<'tcx>
impl<'tcx> StructuralPartialEq for InternedObligationCauseCode<'tcx>
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for InternedObligationCauseCode<'tcx>
impl<'tcx> !Send for InternedObligationCauseCode<'tcx>
impl<'tcx> !Sync for InternedObligationCauseCode<'tcx>
impl<'tcx> Unpin for InternedObligationCauseCode<'tcx>
impl<'tcx> !UnwindSafe for InternedObligationCauseCode<'tcx>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, R> InternIteratorElement<T, R> for T
impl<T, R> InternIteratorElement<T, R> for T
type Output = R
fn intern_with<I, F>(iter: I, f: F) -> <T as InternIteratorElement<T, R>>::Output where
I: Iterator<Item = T>,
F: FnOnce(&[T]) -> R,
sourceimpl<T> MaybeResult<T> for T
impl<T> MaybeResult<T> for T
impl<'a, T> Captures<'a> for T where
T: ?Sized,
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: 8 bytes