Struct RegionConstraintData
pub struct RegionConstraintData<'db> {
pub constraints: Vec<Constraint<'db>>,
pub member_constraints: Vec<MemberConstraint<'db>>,
pub verifys: Vec<Verify<'db>>,
}Expand description
The full set of region constraints gathered up by the collector. Describes constraints between the region variables and other regions, as well as other conditions that must be verified, or assumptions that can be made.
Fields§
§constraints: Vec<Constraint<'db>>Constraints of the form A <= B, where either A or B can
be a region variable (or neither, as it happens).
member_constraints: Vec<MemberConstraint<'db>>Constraints of the form R0 member of [R1, ..., Rn], meaning that
R0 must be equal to one of the regions R1..Rn. These occur
with impl Trait quite frequently.
verifys: Vec<Verify<'db>>A “verify” is something that we need to verify after inference is done, but which does not directly affect inference in any way.
An example is a A <= B where neither A nor B are
inference variables.
Implementations§
§impl<'db> RegionConstraintData<'db>
impl<'db> RegionConstraintData<'db>
Trait Implementations§
§impl<'db> Clone for RegionConstraintData<'db>
impl<'db> Clone for RegionConstraintData<'db>
§fn clone(&self) -> RegionConstraintData<'db>
fn clone(&self) -> RegionConstraintData<'db>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl<'db> Debug for RegionConstraintData<'db>
impl<'db> Debug for RegionConstraintData<'db>
§impl<'db> Default for RegionConstraintData<'db>
impl<'db> Default for RegionConstraintData<'db>
§fn default() -> RegionConstraintData<'db>
fn default() -> RegionConstraintData<'db>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'db> Freeze for RegionConstraintData<'db>
impl<'db> RefUnwindSafe for RegionConstraintData<'db>
impl<'db> Send for RegionConstraintData<'db>
impl<'db> Sync for RegionConstraintData<'db>
impl<'db> Unpin for RegionConstraintData<'db>
impl<'db> UnwindSafe for RegionConstraintData<'db>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more