Struct i_slint_compiler::object_tree::PropertyAnalysis
source · pub struct PropertyAnalysis {
pub is_set: bool,
pub is_set_externally: bool,
pub is_read: bool,
pub is_read_externally: bool,
pub is_linked_to_read_only: 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
is_linked_to_read_only: bool
True if the property is linked to another property that is read only. That property becomes read-only
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 copy 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