Struct rustc_borrowck::constraints::graph::Reverse
source · pub(crate) struct Reverse;
Expand description
In reverse mode, a R1: R2
constraint results in an edge R2 -> R1
. We use this for optimizing liveness computation, because then
we wish to iterate from a region (e.g., R2) to all the regions
that will outlive it (e.g., R1).
Trait Implementations§
source§impl ConstraintGraphDirection for Reverse
impl ConstraintGraphDirection for Reverse
fn start_region(c: &OutlivesConstraint<'_>) -> RegionVid
fn end_region(c: &OutlivesConstraint<'_>) -> RegionVid
fn is_normal() -> bool
impl Copy for Reverse
Auto Trait Implementations§
impl RefUnwindSafe for Reverse
impl Send for Reverse
impl Sync for Reverse
impl Unpin for Reverse
impl UnwindSafe for Reverse
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
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: 0 bytes