pub struct AtlasUsageStats {
pub allocated_area: u32,
pub total_area: u32,
pub allocated_count: u32,
}Expand description
Usage statistics for an atlas.
Fields§
§allocated_area: u32Total allocated area in pixels.
total_area: u32Total available area in pixels.
allocated_count: u32Number of allocated images.
Implementations§
Source§impl AtlasUsageStats
impl AtlasUsageStats
Sourcepub fn usage_percentage(&self) -> f32
pub fn usage_percentage(&self) -> f32
Calculate usage percentage (0.0 to 1.0).
Trait Implementations§
Source§impl Clone for AtlasUsageStats
impl Clone for AtlasUsageStats
Source§fn clone(&self) -> AtlasUsageStats
fn clone(&self) -> AtlasUsageStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AtlasUsageStats
impl RefUnwindSafe for AtlasUsageStats
impl Send for AtlasUsageStats
impl Sync for AtlasUsageStats
impl Unpin for AtlasUsageStats
impl UnsafeUnpin for AtlasUsageStats
impl UnwindSafe for AtlasUsageStats
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