[][src]Struct sixtyfps_compilerlib::object_tree::TransitionPropertyAnimation

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 anumation object

Implementations

impl TransitionPropertyAnimation[src]

pub fn condition(&self, state: Expression) -> Expression[src]

Return an expression which returns a boolean which is true if the transition is active. The state argument is an expresison referencing the state property of type StateInfo

Trait Implementations

impl Clone for TransitionPropertyAnimation[src]

impl Debug for TransitionPropertyAnimation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.