pub struct PackedItem<T> {
pub data: T,
pub rect: Rect,
}Expand description
An item that has been packed into a container.
Fields§
§data: TThe data associated with the item.
rect: RectThe position where the item was packed.
If the item was packed with Rotation::Allowed, you can compare
the rectangle’s width with the input width you provided. If they
differ, it means the item was rotated to fit better.
Auto Trait Implementations§
impl<T> Freeze for PackedItem<T>where
T: Freeze,
impl<T> RefUnwindSafe for PackedItem<T>where
T: RefUnwindSafe,
impl<T> Send for PackedItem<T>where
T: Send,
impl<T> Sync for PackedItem<T>where
T: Sync,
impl<T> Unpin for PackedItem<T>where
T: Unpin,
impl<T> UnwindSafe for PackedItem<T>where
T: UnwindSafe,
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