[−][src]Enum rustc_trait_selection::infer::SubregionOrigin
The origin of a r1 <= r2 constraint.
See error_reporting module for more details
Variants
Arose from a subtyping relation
RelateObjectBound(Span)When casting &'a T to an &'b Trait object,
relating 'a to 'b
Some type parameter was instantiated with the given type, and that type must outlive some region.
RelateRegionParamBound(Span)The given region parameter was instantiated with a region that must outlive some other region.
Reborrow(Span)Creating a pointer b to contents of another reference
Creating a pointer b to contents of an upvar
Data with type Ty<'tcx> was borrowed
(&'a &'b T) where a >= b
CallReturn(Span)Region in return type of invoked fn must enclose call
Comparing the signature and requirements of an impl method against the containing trait.
Fields of CompareImplMethodObligation
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for SubregionOrigin<'tcx>
impl<'tcx> !Send for SubregionOrigin<'tcx>
impl<'tcx> !Sync for SubregionOrigin<'tcx>
impl<'tcx> Unpin for SubregionOrigin<'tcx>
impl<'tcx> !UnwindSafe for SubregionOrigin<'tcx>
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<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.