Struct i_slint_compiler::llr::BindingExpression
source · pub struct BindingExpression {
pub expression: MutExpression,
pub animation: Option<Animation>,
pub is_constant: bool,
pub is_state_info: bool,
pub use_count: Cell<usize>,
}
Fields§
§expression: MutExpression
§animation: Option<Animation>
§is_constant: bool
When true, we can initialize the property with set
otherwise, set_binding
must be used
is_state_info: bool
When true, the expression is a “state binding”. Despite the type of the expression being a integer
the property is of type StateInfo and the set_state_binding
ned to be used on the property
use_count: Cell<usize>
The amount of time this binding is used
This property is only valid after the count_property_use
pass
Trait Implementations§
source§impl Clone for BindingExpression
impl Clone for BindingExpression
source§fn clone(&self) -> BindingExpression
fn clone(&self) -> BindingExpression
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 more