Struct tuix_internal::state::storage::animatable_storage::AnimatableStorage[][src]

pub struct AnimatableStorage<T> where
    T: Interpolator
{ pub entity_indices: Vec<DataIndex, Global>, pub rule_indices: Vec<DataIndex, Global>, pub data: Vec<T, Global>, pub inline_data: Vec<T, Global>, pub animations: Vec<AnimationState<T>, Global>, pub active_animations: Vec<AnimationState<T>, Global>, }

Fields

entity_indices: Vec<DataIndex, Global>rule_indices: Vec<DataIndex, Global>data: Vec<T, Global>inline_data: Vec<T, Global>animations: Vec<AnimationState<T>, Global>active_animations: Vec<AnimationState<T>, Global>

Implementations

Return the index of the shared data rule

Links an entity to any matching rules

Insert shared data assocaited with a specified rule index

Returns true if the entity is linked to a currently active animation

Returns a mutable reference to the shared data associated with the specified rule index

Set the value of shared data associated with the specified rule index

Return true if the specified rule index has shared data in the storage

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.