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 moreAuto Trait Implementations§
impl !RefUnwindSafe for BindingExpression
impl !Send for BindingExpression
impl !Sync for BindingExpression
impl Unpin for BindingExpression
impl !UnwindSafe for BindingExpression
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