Struct rustc_borrowck::region_infer::values::LivenessValues [−][src]
pub(crate) struct LivenessValues<N: Idx> {
elements: Rc<RegionValueElements>,
points: SparseBitMatrix<N, PointIndex>,
}
Expand description
When we initially compute liveness, we use a bit matrix storing points for each region-vid.
Fields
elements: Rc<RegionValueElements>
points: SparseBitMatrix<N, PointIndex>
Implementations
Creates a new set of “region values” that tracks causal information. Each of the regions in num_region_variables will be initialized with an empty set of points and no causal information.
Iterate through each region that has a value in this set.
Adds the given element to the value for the given region. Returns whether the element is newly added (i.e., was not already present).
Adds all the elements in the given bit array into the given region. Returns whether any of them are newly added.
Adds all the control-flow points to the values for r
.
Returns true
if the region r
contains the given element.
Returns an iterator of all the elements contained by the region r
Returns a “pretty” string value of the region. Meant for debugging.
Auto Trait Implementations
impl<N> !RefUnwindSafe for LivenessValues<N>
impl<N> !Send for LivenessValues<N>
impl<N> !Sync for LivenessValues<N>
impl<N> Unpin for LivenessValues<N>
impl<N> UnwindSafe for LivenessValues<N>
Blanket Implementations
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: 40 bytes