pub struct AnimationTrackM2CameraSpline { /* private fields */ }Implementations§
Source§impl AnimationTrackM2CameraSpline
impl AnimationTrackM2CameraSpline
pub fn interpolation_type(&self) -> InterpolationType
pub fn set_interpolation_type(&mut self, value: InterpolationType)
pub fn global_sequence_id(&self) -> u16
pub fn set_global_sequence_id(&mut self, value: u16)
Sourcepub fn timestamps_len(&self) -> usize
pub fn timestamps_len(&self) -> usize
Number of inner sequences.
Sourcepub fn timestamps(&self, outer: usize) -> &[u32]
pub fn timestamps(&self, outer: usize) -> &[u32]
Zero-copy view of inner sequence outer. Empty when out of range.
Each inner vector is contiguous on its own, but the outer one is a vector of vectors — so this borrows per sequence rather than handing back one flat slice.
pub fn timestamps_mut(&mut self, outer: usize) -> &mut [u32]
pub fn set_timestamps(&mut self, outer: usize, values: &[u32])
Sourcepub fn resize_timestamps(&mut self, count: usize)
pub fn resize_timestamps(&mut self, count: usize)
Resize the outer sequence. Do this before taking any borrow.
pub fn resize_timestamps_inner(&mut self, outer: usize, count: usize)
Sourcepub fn values_len(&self) -> usize
pub fn values_len(&self) -> usize
Number of inner sequences.
Sourcepub fn values_inner_len(&self, outer: usize) -> usize
pub fn values_inner_len(&self, outer: usize) -> usize
Length of inner sequence outer.
Sourcepub fn values(
&self,
outer: usize,
inner: usize,
) -> Option<Ref<'_, CameraSpline>>
pub fn values( &self, outer: usize, inner: usize, ) -> Option<Ref<'_, CameraSpline>>
Borrow element inner of sequence outer in place.
pub fn values_mut( &mut self, outer: usize, inner: usize, ) -> Option<RefMut<'_, CameraSpline>>
Sourcepub fn resize_values(&mut self, count: usize)
pub fn resize_values(&mut self, count: usize)
Resize the outer sequence. Do this before taking a borrow.
pub fn resize_values_inner(&mut self, outer: usize, count: usize)
Trait Implementations§
Source§impl Debug for AnimationTrackM2CameraSpline
impl Debug for AnimationTrackM2CameraSpline
Source§impl Drop for AnimationTrackM2CameraSpline
impl Drop for AnimationTrackM2CameraSpline
impl Send for AnimationTrackM2CameraSpline
Auto Trait Implementations§
impl !Sync for AnimationTrackM2CameraSpline
impl Freeze for AnimationTrackM2CameraSpline
impl RefUnwindSafe for AnimationTrackM2CameraSpline
impl Unpin for AnimationTrackM2CameraSpline
impl UnsafeUnpin for AnimationTrackM2CameraSpline
impl UnwindSafe for AnimationTrackM2CameraSpline
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