pub struct MemoryUsage {
pub sections: usize,
pub bone_animations: usize,
pub translation_keyframes: usize,
pub rotation_keyframes: usize,
pub scaling_keyframes: usize,
pub approximate_bytes: usize,
}Expand description
Memory usage statistics for ANIM files
Fields§
§sections: usizeNumber of animation sections
bone_animations: usizeTotal number of bone animations
translation_keyframes: usizeTotal translation keyframes
rotation_keyframes: usizeTotal rotation keyframes
scaling_keyframes: usizeTotal scaling keyframes
approximate_bytes: usizeApproximate memory usage in bytes
Implementations§
Source§impl MemoryUsage
impl MemoryUsage
Sourcepub fn calculate_approximate_bytes(&self) -> usize
pub fn calculate_approximate_bytes(&self) -> usize
Calculate approximate memory usage in bytes
Sourcepub fn total_keyframes(&self) -> usize
pub fn total_keyframes(&self) -> usize
Get total keyframes across all animation types
Trait Implementations§
Source§impl Clone for MemoryUsage
impl Clone for MemoryUsage
Source§fn clone(&self) -> MemoryUsage
fn clone(&self) -> MemoryUsage
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 moreSource§impl Debug for MemoryUsage
impl Debug for MemoryUsage
Source§impl Default for MemoryUsage
impl Default for MemoryUsage
Source§fn default() -> MemoryUsage
fn default() -> MemoryUsage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MemoryUsage
impl RefUnwindSafe for MemoryUsage
impl Send for MemoryUsage
impl Sync for MemoryUsage
impl Unpin for MemoryUsage
impl UnwindSafe for MemoryUsage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().