pub struct EffectAnalysis {
pub inst_effect: HashMap<InstPtr, Effect>,
pub has_io_input: HashSet<FunPtr>,
pub has_io_output: HashSet<FunPtr>,
pub has_mem_input: HashSet<FunPtr>,
pub has_mem_output: HashSet<FunPtr>,
/* private fields */
}Fields§
§inst_effect: HashMap<InstPtr, Effect>§has_io_input: HashSet<FunPtr>§has_io_output: HashSet<FunPtr>§has_mem_input: HashSet<FunPtr>§has_mem_output: HashSet<FunPtr>Implementations§
Source§impl EffectAnalysis
impl EffectAnalysis
Sourcepub fn has_effect(&self, inst: InstPtr) -> bool
pub fn has_effect(&self, inst: InstPtr) -> bool
Get if function has side effect.
Auto Trait Implementations§
impl Freeze for EffectAnalysis
impl !RefUnwindSafe for EffectAnalysis
impl !Send for EffectAnalysis
impl !Sync for EffectAnalysis
impl Unpin for EffectAnalysis
impl !UnwindSafe for EffectAnalysis
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