Struct rustc_mir::borrow_check::constraints::graph::Reverse [−][src]
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
impl ConstraintGraphDirecton for Reverse[src]
impl ConstraintGraphDirecton for Reverse[src]fn start_region(c: &OutlivesConstraint) -> RegionVid[src]
fn end_region(c: &OutlivesConstraint) -> RegionVid[src]
fn is_normal() -> bool[src]
impl Copy for Reverse[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]