pub struct AtlasStats {
pub tiles_packed: usize,
pub tiles_dropped: usize,
pub utilization: f32,
pub wasted_pixels: u32,
}Expand description
Statistics returned from an atlas packing operation.
Fields§
§tiles_packed: usizeNumber of tiles successfully packed.
tiles_dropped: usizeNumber of tiles that did not fit and were dropped.
utilization: f32Fraction of the atlas area that is occupied (0.0 – 1.0).
wasted_pixels: u32Number of unused pixels (total atlas area minus packed tile pixels).
Trait Implementations§
Source§impl Clone for AtlasStats
impl Clone for AtlasStats
Source§fn clone(&self) -> AtlasStats
fn clone(&self) -> AtlasStats
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 moreSource§impl Debug for AtlasStats
impl Debug for AtlasStats
Source§impl Default for AtlasStats
impl Default for AtlasStats
Source§fn default() -> AtlasStats
fn default() -> AtlasStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AtlasStats
impl RefUnwindSafe for AtlasStats
impl Send for AtlasStats
impl Sync for AtlasStats
impl Unpin for AtlasStats
impl UnsafeUnpin for AtlasStats
impl UnwindSafe for AtlasStats
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 more