pub struct PropertiesAnimation {
pub version: (u16, u16, u16),
pub fps: f32,
pub animations: Vec<Animation>,
}
Expand description
A Properties Animation file containing all the animations for all exported properties of all objects in the scene.
Fields§
§version: (u16, u16, u16)
Version of the file format as a tuple of semver (major, minor, patch).
fps: f32
The number of frames per second.
animations: Vec<Animation>
The list of animations.
Implementations§
Source§impl PropertiesAnimation
impl PropertiesAnimation
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<PropertiesAnimation, Error>
pub fn from_bytes(bytes: &[u8]) -> Result<PropertiesAnimation, Error>
Parses a Properties Animation file from a byte slice.
Trait Implementations§
Source§impl Clone for PropertiesAnimation
impl Clone for PropertiesAnimation
Source§fn clone(&self) -> PropertiesAnimation
fn clone(&self) -> PropertiesAnimation
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PropertiesAnimation
impl Debug for PropertiesAnimation
Source§impl PartialEq for PropertiesAnimation
impl PartialEq for PropertiesAnimation
impl StructuralPartialEq for PropertiesAnimation
Auto Trait Implementations§
impl Freeze for PropertiesAnimation
impl RefUnwindSafe for PropertiesAnimation
impl Send for PropertiesAnimation
impl Sync for PropertiesAnimation
impl Unpin for PropertiesAnimation
impl UnwindSafe for PropertiesAnimation
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