pub struct MotionTrackBundle<K: Sized> {
pub tracks: HashMap<String, MotionTrack<K>>,
/* private fields */
}Fields§
§tracks: HashMap<String, MotionTrack<K>>Implementations§
Source§impl<K> MotionTrackBundle<K>
impl<K> MotionTrackBundle<K>
pub fn new() -> MotionTrackBundle<K>
pub fn keyframe_len(&self) -> usize
pub fn resolve_id(&self, id: i32) -> Option<&String>
pub fn resolve_name(&self, name: &str) -> Option<i32>
pub fn iter(&self) -> impl Iterator<Item = (&K, String)> + '_
pub fn find_keyframes_map(&self, track_name: &str) -> Option<&HashMap<u32, K>>
Source§impl<K> MotionTrackBundle<K>where
K: Keyframe,
impl<K> MotionTrackBundle<K>where
K: Keyframe,
pub fn max_frame_index(&self) -> Option<u32>
pub fn insert_keyframe(&mut self, keyframe: K, track_name: &str) -> Option<K>
Trait Implementations§
Source§impl<K: Clone + Sized> Clone for MotionTrackBundle<K>
impl<K: Clone + Sized> Clone for MotionTrackBundle<K>
Source§fn clone(&self) -> MotionTrackBundle<K>
fn clone(&self) -> MotionTrackBundle<K>
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 moreAuto Trait Implementations§
impl<K> Freeze for MotionTrackBundle<K>
impl<K> RefUnwindSafe for MotionTrackBundle<K>where
K: RefUnwindSafe,
impl<K> Send for MotionTrackBundle<K>where
K: Send,
impl<K> Sync for MotionTrackBundle<K>where
K: Sync,
impl<K> Unpin for MotionTrackBundle<K>where
K: Unpin,
impl<K> UnwindSafe for MotionTrackBundle<K>where
K: UnwindSafe,
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