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: boolWhen true, we can initialize the property with set otherwise, set_binding must be used
is_state_info: boolWhen 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 need 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 !Freeze for BindingExpression
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
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