pub struct ScheduleConflicts { /* private fields */ }
Expand description
A conflict graph that describes which nodes (i.e. groups/invokes) are being run in parallel to each other.
Implementations§
Source§impl ScheduleConflicts
impl ScheduleConflicts
Sourcepub fn conflicts_with(&self, node: &Id) -> HashSet<Id>
pub fn conflicts_with(&self, node: &Id) -> HashSet<Id>
Return a vector of all nodes that conflict with this nodes.
Sourcepub fn all_conflicts(&self) -> impl Iterator<Item = (Id, Id)> + '_
pub fn all_conflicts(&self) -> impl Iterator<Item = (Id, Id)> + '_
Returns an iterator containing all conflict edges,
(src node: ir::Id, dst node: ir::Id)
, in this graph.
Trait Implementations§
Source§impl Default for ScheduleConflicts
impl Default for ScheduleConflicts
Source§fn default() -> ScheduleConflicts
fn default() -> ScheduleConflicts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScheduleConflicts
impl RefUnwindSafe for ScheduleConflicts
impl Send for ScheduleConflicts
impl Sync for ScheduleConflicts
impl Unpin for ScheduleConflicts
impl UnwindSafe for ScheduleConflicts
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
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