pub struct Dominators { /* private fields */ }Expand description
Result of dominator analysis, providing efficient dominator queries.
Implementations§
Source§impl Dominators
impl Dominators
Sourcepub fn dominates(&self, a: BlockId, b: BlockId) -> bool
pub fn dominates(&self, a: BlockId, b: BlockId) -> bool
Returns true if block a dominates block b.
Sourcepub fn dominators_of(&self, block: BlockId) -> &OrderedHashSet<BlockId>
pub fn dominators_of(&self, block: BlockId) -> &OrderedHashSet<BlockId>
Returns the set of dominators for the given block.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dominators
impl RefUnwindSafe for Dominators
impl Send for Dominators
impl Sync for Dominators
impl Unpin for Dominators
impl UnsafeUnpin for Dominators
impl UnwindSafe for Dominators
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<'db, T> DebugDbUpcast<'db, T> for Twhere
T: ?Sized,
impl<'db, T> DebugDbUpcast<'db, T> for Twhere
T: ?Sized,
fn debug_db_upcast(&'db self) -> &'db T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more