pub struct Reliance(/* private fields */);Expand description
The constraints a result may rely on: every constraint it relies on is included, and possibly others (the set over-approximates). Constraints from the 64th on are tracked together.
A result with an empty reliance holds everywhere; one relying only on constraints that hold in some scope (for example program-wide invariants, added first) holds in that scope.
Implementations§
Source§impl Reliance
impl Reliance
Sourcepub fn may_use(self, id: ConstraintId) -> bool
pub fn may_use(self, id: ConstraintId) -> bool
Whether the result may rely on constraint id. false is definite.
Sourcepub fn all_before(self, id: ConstraintId) -> bool
pub fn all_before(self, id: ConstraintId) -> bool
Whether every constraint the result relies on was added before id (so the result holds
wherever the constraints before id hold). true is definite.
Trait Implementations§
Source§impl BitOrAssign for Reliance
impl BitOrAssign for Reliance
Source§fn bitor_assign(&mut self, o: Reliance)
fn bitor_assign(&mut self, o: Reliance)
Performs the
|= operation. Read moreimpl Copy for Reliance
impl Eq for Reliance
impl StructuralPartialEq for Reliance
Auto Trait Implementations§
impl Forget for Reliance
impl Freeze for Reliance
impl Move for Reliance
impl RefUnwindSafe for Reliance
impl Send for Reliance
impl Sync for Reliance
impl Unpin for Reliance
impl UnsafeUnpin for Reliance
impl UnwindSafe for Reliance
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