pub struct PackOutput {
pub placed: Vec<PlacedSprite>,
pub atlas_size: Size,
pub overflow: Vec<Sprite>,
}Expand description
Output produced by a single atlas packing pass.
Fields§
§placed: Vec<PlacedSprite>Successfully placed sprites with their atlas positions.
atlas_size: SizeActual atlas dimensions used.
overflow: Vec<Sprite>Sprites that did not fit; forwarded to the next sheet in multipack mode.
Auto Trait Implementations§
impl Freeze for PackOutput
impl RefUnwindSafe for PackOutput
impl Send for PackOutput
impl Sync for PackOutput
impl Unpin for PackOutput
impl UnsafeUnpin for PackOutput
impl UnwindSafe for PackOutput
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> 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