pub struct PartBases { /* private fields */ }Expand description
Every part’s base for an animation under one coordinate setup: its state
with the attributes that never change during the animation
(CachedPartData::constant_mask) already applied. extract_pose starts
each part from its base and evaluates only the rest.
Implementations§
Source§impl PartBases
impl PartBases
pub fn build( cached_parts: &[CachedPartData], keys: &KeyColumns<'_>, start_frame: f32, coordinate_system: SsCoordinateSystem, origin: SsOrigin, unit: SsUnit, canvas_width: f32, canvas_height: f32, ) -> Self
Sourcepub fn get(&self, i: usize) -> Option<PartBaseRef<'_>>
pub fn get(&self, i: usize) -> Option<PartBaseRef<'_>>
Part i’s base, for evaluate_part to start from.
Auto Trait Implementations§
impl Freeze for PartBases
impl RefUnwindSafe for PartBases
impl Send for PartBases
impl Sync for PartBases
impl Unpin for PartBases
impl UnsafeUnpin for PartBases
impl UnwindSafe for PartBases
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