pub struct PropertyAnalysis {
pub is_set: bool,
pub is_set_externally: bool,
pub is_read: bool,
pub is_read_externally: bool,
}
Fields§
§is_set: bool
true if somewhere in the code, there is an expression that changes this property with an assignment
is_set_externally: bool
True if this property might be set from a different component.
is_read: bool
true if somewhere in the code, an expression is reading this property Note: currently this is only set in the binding analysis pass
is_read_externally: bool
true if this property is read from another component
Implementations§
Source§impl PropertyAnalysis
impl PropertyAnalysis
Sourcepub fn merge_with_base(&mut self, other: &PropertyAnalysis)
pub fn merge_with_base(&mut self, other: &PropertyAnalysis)
Merge analysis from base element for inlining
Contrary to merge
, we don’t keep the external uses because
they should come from us
Sourcepub fn merge(&mut self, other: &PropertyAnalysis)
pub fn merge(&mut self, other: &PropertyAnalysis)
Merge the analysis
Trait Implementations§
Source§impl Clone for PropertyAnalysis
impl Clone for PropertyAnalysis
Source§fn clone(&self) -> PropertyAnalysis
fn clone(&self) -> PropertyAnalysis
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PropertyAnalysis
impl Debug for PropertyAnalysis
Source§impl Default for PropertyAnalysis
impl Default for PropertyAnalysis
Source§fn default() -> PropertyAnalysis
fn default() -> PropertyAnalysis
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PropertyAnalysis
impl RefUnwindSafe for PropertyAnalysis
impl Send for PropertyAnalysis
impl Sync for PropertyAnalysis
impl Unpin for PropertyAnalysis
impl UnwindSafe for PropertyAnalysis
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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