[−][src]Struct rustc_mir::util::storage::AlwaysLiveLocals

pub struct AlwaysLiveLocals(BitSet<Local>);

The set of locals in a MIR body that do not have StorageLive/StorageDead annotations.

These locals have fixed storage for the duration of the body.

Implementations

impl AlwaysLiveLocals[src]

pub fn new<'tcx>(body: &Body<'tcx>) -> Self[src]

pub fn into_inner(self) -> BitSet<Local>[src]

Methods from Deref<Target = BitSet<Local>>

pub fn domain_size(&self) -> usize[src]

Gets the domain size.

pub fn count(&self) -> usize[src]

Count the number of set bits in the set.

pub fn contains(&self, elem: T) -> bool[src]

Returns true if self contains elem.

pub fn superset(&self, other: &BitSet<T>) -> bool[src]

Is self is a (non-strict) superset of other?

pub fn is_empty(&self) -> bool[src]

Is the set empty?

pub fn words(&self) -> &[u64][src]

Gets a slice of the underlying words.

pub fn iter(&self) -> BitIter<'_, T>[src]

Iterates over the indices of set bits in a sorted order.

pub fn to_hybrid(&self) -> HybridBitSet<T>[src]

Duplicates the set as a hybrid set.

Trait Implementations

impl Clone for AlwaysLiveLocals[src]

impl Debug for AlwaysLiveLocals[src]

impl Deref for AlwaysLiveLocals[src]

type Target = BitSet<Local>

The resulting type after dereferencing.

Auto Trait Implementations

impl RefUnwindSafe for AlwaysLiveLocals

impl Send for AlwaysLiveLocals

impl Sync for AlwaysLiveLocals

impl Unpin for AlwaysLiveLocals

impl UnwindSafe for AlwaysLiveLocals

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]