pub struct TransitionPropertyAnimation {
pub state_id: i32,
pub is_out: bool,
pub animation: ElementRc,
}
Fields
state_id: i32
The state id as computed in lower_state
is_out: bool
false for ‘to’, true for ‘out’
animation: ElementRc
The content of the animation
object
Implementations
sourceimpl TransitionPropertyAnimation
impl TransitionPropertyAnimation
sourcepub fn condition(&self, state: Expression) -> Expression
pub fn condition(&self, state: Expression) -> Expression
Return an expression which returns a boolean which is true if the transition is active. The state argument is an expression referencing the state property of type StateInfo
Trait Implementations
sourceimpl Clone for TransitionPropertyAnimation
impl Clone for TransitionPropertyAnimation
sourcefn clone(&self) -> TransitionPropertyAnimation
fn clone(&self) -> TransitionPropertyAnimation
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
Auto Trait Implementations
impl !RefUnwindSafe for TransitionPropertyAnimation
impl !Send for TransitionPropertyAnimation
impl !Sync for TransitionPropertyAnimation
impl Unpin for TransitionPropertyAnimation
impl !UnwindSafe for TransitionPropertyAnimation
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<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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more