pub struct MotionRetargetSet<K, S, T = S> { /* private fields */ }Expand description
Stable-id retargeting result for a new target set.
Implementations§
Source§impl<K, S, T> MotionRetargetSet<K, S, T>
impl<K, S, T> MotionRetargetSet<K, S, T>
Sourcepub fn new(
targets: Vec<MotionRetargetItem<K, S, T>>,
leaving: Vec<MotionSnapshot<K, S>>,
) -> Self
pub fn new( targets: Vec<MotionRetargetItem<K, S, T>>, leaving: Vec<MotionSnapshot<K, S>>, ) -> Self
Creates a retarget set.
Sourcepub fn targets(&self) -> &[MotionRetargetItem<K, S, T>]
pub fn targets(&self) -> &[MotionRetargetItem<K, S, T>]
Returns the target items in target order.
Sourcepub fn leaving(&self) -> &[MotionSnapshot<K, S>]
pub fn leaving(&self) -> &[MotionSnapshot<K, S>]
Returns sampled items that were not present in the target set.
Sourcepub fn into_parts(
self,
) -> (Vec<MotionRetargetItem<K, S, T>>, Vec<MotionSnapshot<K, S>>)
pub fn into_parts( self, ) -> (Vec<MotionRetargetItem<K, S, T>>, Vec<MotionSnapshot<K, S>>)
Consumes the set and returns its parts.
Trait Implementations§
impl<K: PartialEq, S: PartialEq, T: PartialEq> StructuralPartialEq for MotionRetargetSet<K, S, T>
Auto Trait Implementations§
impl<K, S, T> Freeze for MotionRetargetSet<K, S, T>
impl<K, S, T> RefUnwindSafe for MotionRetargetSet<K, S, T>
impl<K, S, T> Send for MotionRetargetSet<K, S, T>
impl<K, S, T> Sync for MotionRetargetSet<K, S, T>
impl<K, S, T> Unpin for MotionRetargetSet<K, S, T>
impl<K, S, T> UnsafeUnpin for MotionRetargetSet<K, S, T>
impl<K, S, T> UnwindSafe for MotionRetargetSet<K, S, T>
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