pub enum AnimationTransitionEligibility {
DifferentState,
ExitTimeNotReached,
ConditionNotMet {
condition: usize,
},
Eligible,
}Expand description
Read-only result of checking one authored edge against a graph player.
Reports the first blocking check in runtime order: source state, exit time,
then conditions in authored order. Eligibility is independent of pause, the
next update’s delta, and competing edges. See
GraphPlayer::transition_eligibility for an example and
GraphPlayer::selected_transition for the edge that would actually win.
Variants§
DifferentState
The edge’s source is not the current graph state.
ExitTimeNotReached
The animator’s current normalized time is below the edge’s exit time.
ConditionNotMet
The first false condition; condition indexes the edge’s conditions.
Eligible
All checks pass. An earlier eligible edge still takes priority.
Trait Implementations§
Source§impl Clone for AnimationTransitionEligibility
impl Clone for AnimationTransitionEligibility
Source§fn clone(&self) -> AnimationTransitionEligibility
fn clone(&self) -> AnimationTransitionEligibility
Returns a duplicate 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 moreSource§impl PartialEq for AnimationTransitionEligibility
impl PartialEq for AnimationTransitionEligibility
Source§fn eq(&self, other: &AnimationTransitionEligibility) -> bool
fn eq(&self, other: &AnimationTransitionEligibility) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AnimationTransitionEligibility
impl Eq for AnimationTransitionEligibility
impl StructuralPartialEq for AnimationTransitionEligibility
Auto Trait Implementations§
impl Freeze for AnimationTransitionEligibility
impl RefUnwindSafe for AnimationTransitionEligibility
impl Send for AnimationTransitionEligibility
impl Sync for AnimationTransitionEligibility
impl Unpin for AnimationTransitionEligibility
impl UnwindSafe for AnimationTransitionEligibility
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