pub struct DeadNodeEliminationPass;Expand description
Removes nodes whose outputs list is empty (i.e., no other node consumes
their output).
Nodes with no outputs are considered dead unless they are the only node in the graph (treating them as implicit sinks).
Implementations§
Trait Implementations§
Source§impl Default for DeadNodeEliminationPass
impl Default for DeadNodeEliminationPass
Auto Trait Implementations§
impl Freeze for DeadNodeEliminationPass
impl RefUnwindSafe for DeadNodeEliminationPass
impl Send for DeadNodeEliminationPass
impl Sync for DeadNodeEliminationPass
impl Unpin for DeadNodeEliminationPass
impl UnsafeUnpin for DeadNodeEliminationPass
impl UnwindSafe for DeadNodeEliminationPass
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