pub struct AnimationBank(/* private fields */);Expand description
Shared immutable authoring data. Every Animator allocates only its own pose scratch buffers once; hundreds of actors can reuse this bank’s tracks.
Implementations§
Source§impl AnimationBank
impl AnimationBank
pub fn new( bind: Vec<Transform>, clips: Vec<AnimationClip>, ) -> Result<AnimationBank, AnimationError>
pub fn bind_pose(&self) -> &[Transform]
pub fn clips(&self) -> &[AnimationClip]
Trait Implementations§
Source§impl Clone for AnimationBank
impl Clone for AnimationBank
Source§fn clone(&self) -> AnimationBank
fn clone(&self) -> AnimationBank
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 Freeze for AnimationBank
impl RefUnwindSafe for AnimationBank
impl Send for AnimationBank
impl Sync for AnimationBank
impl Unpin for AnimationBank
impl UnwindSafe for AnimationBank
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