Struct vox_geometry_rust::animation::Frame [−][src]
Expand description
Representation of an animation frame.
This struct holds current animation frame index and frame interval in seconds.
Fields
index: isize
Frame index.
time_interval_in_seconds: f64
Time interval in seconds between two adjacent frames.
Implementations
impl Frame
[src]
impl Frame
[src]pub fn new_default() -> Frame
[src]
pub fn new_default() -> Frame
[src]Constructs Frame instance with 1/60 seconds time interval.
pub fn new(new_index: isize, new_time_interval_in_seconds: f64) -> Frame
[src]
pub fn new(new_index: isize, new_time_interval_in_seconds: f64) -> Frame
[src]Constructs Frame instance with given time interval.
pub fn time_in_seconds(&self) -> f64
[src]
pub fn time_in_seconds(&self) -> f64
[src]Returns the elapsed time in seconds.
pub fn advance_single(&mut self)
[src]
pub fn advance_single(&mut self)
[src]Advances single frame.
pub fn advance_multi(&mut self, delta: isize)
[src]
pub fn advance_multi(&mut self, delta: isize)
[src]Advances multiple frames.
- parameter: delta Number of frames to advance.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,