fn check_termination<T>(
    control_id: u64,
    hierarchy: &AnimationHierarchy<T>,
    samplers: &WriteStorage<SamplerControlSet<T>>,
) -> bool
where
    T: AnimationSampling,
{
    hierarchy
        .nodes
        .iter()
        .flat_map(|(_, node_entity)| samplers.get(*node_entity))
        .all(|s| s.check_termination(control_id))
}
/// Check if all nodes in an `AnimationHierarcy` are ready for termination.
Check if all nodes in an `AnimationHierarcy` are ready for termination.
Check if all nodes in an ` AnimationHierarcy ` are ready for termination .
fn check_termination<T>(
    control_id: u64,
    hierarchy: &AnimationHierarchy<T>,
    samplers: &WriteStorage<SamplerControlSet<T>>,
) -> bool
where
    T: AnimationSampling,
{
    hierarchy
        .nodes
        .iter()
        .flat_map(|(_, node_entity)| samplers.get(*node_entity))
        .all(|s| s.check_termination(control_id))
}
fn check_termination < T > ( control_id : u64 , hierarchy : & AnimationHierarchy < T > , samplers : & WriteStorage < SamplerControlSet < T > > , ) -> bool where T : AnimationSampling , { hierarchy . nodes . iter ( ) . flat_map ( | ( _ , node_entity ) | samplers . get ( * node_entity ) ) . all ( | s | s . check_termination ( control_id ) ) }
Check if all nodes in an `AnimationHierarcy` are ready for termination.
Check if all nodes in an ` AnimationHierarcy ` are ready for termination .
control_id
u64
hierarchy
&AnimationHierarchy<T>
samplers
&WriteStorage<SamplerControlSet<T>>
control_id
u64
hierarchy
&AnimationHierarchy<T>
samplers
&WriteStorage<SamplerControlSet<T>>