pub struct Clip { /* private fields */ }Implementations§
Source§impl Clip
impl Clip
pub fn new( name: impl Into<String>, channels: Vec<Channel>, ) -> Result<Self, AnimError>
pub fn with_duration(self, duration: f32) -> Result<Self, AnimError>
pub fn with_events(self, events: Vec<ClipEvent>) -> Result<Self, AnimError>
pub fn name(&self) -> &str
pub fn channels(&self) -> &[Channel]
pub fn events(&self) -> &[ClipEvent]
pub fn duration(&self) -> f32
pub fn sample(&self, time: f32, pose: &mut Pose)
pub fn apply(&self, time: f32, pose: &mut Pose, weight: f32)
Trait Implementations§
impl StructuralPartialEq for Clip
Auto Trait Implementations§
impl Freeze for Clip
impl RefUnwindSafe for Clip
impl Send for Clip
impl Sync for Clip
impl Unpin for Clip
impl UnsafeUnpin for Clip
impl UnwindSafe for Clip
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