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,
}
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
sourceimpl 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
sourceimpl Clone for PropertyAnalysis
impl Clone for PropertyAnalysis
sourcefn clone(&self) -> PropertyAnalysis
fn clone(&self) -> PropertyAnalysis
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PropertyAnalysis
impl Debug for PropertyAnalysis
sourceimpl Default for PropertyAnalysis
impl Default for PropertyAnalysis
sourcefn default() -> PropertyAnalysis
fn default() -> PropertyAnalysis
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for PropertyAnalysis
impl Send for PropertyAnalysis
impl Sync for PropertyAnalysis
impl Unpin for PropertyAnalysis
impl UnwindSafe for PropertyAnalysis
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian()
.
sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian()
.
sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian()
.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more