pub struct DeadCodeEliminationPass { /* private fields */ }Expand description
Dead code elimination pass Removes nodes that don’t contribute to any output
Implementations§
Trait Implementations§
Source§impl Default for DeadCodeEliminationPass
impl Default for DeadCodeEliminationPass
Source§impl OptimizationPass for DeadCodeEliminationPass
impl OptimizationPass for DeadCodeEliminationPass
Source§fn is_applicable(&self, graph: &Graph) -> bool
fn is_applicable(&self, graph: &Graph) -> bool
Check if this pass can be safely applied
Auto Trait Implementations§
impl !Freeze for DeadCodeEliminationPass
impl !RefUnwindSafe for DeadCodeEliminationPass
impl !Sync for DeadCodeEliminationPass
impl Send for DeadCodeEliminationPass
impl Unpin for DeadCodeEliminationPass
impl UnsafeUnpin for DeadCodeEliminationPass
impl UnwindSafe for DeadCodeEliminationPass
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<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