pub struct GroupedRectsToPlace<RectToPlaceId, GroupId = ()>where
RectToPlaceId: Debug + Hash + Eq + Ord + PartialOrd,
GroupId: Debug + Hash + Eq + Ord + PartialOrd,{ /* private fields */ }
Expand description
Groups of rectangles that need to be placed into bins.
When placing groups a heuristic is used to determine which groups are the largest. Larger groups are placed first.
A group’s heuristic is computed by calculating the heuristic of all of the rectangles inside the group and then summing them.
Implementations§
Source§impl<RectToPlaceId, GroupId> GroupedRectsToPlace<RectToPlaceId, GroupId>
impl<RectToPlaceId, GroupId> GroupedRectsToPlace<RectToPlaceId, GroupId>
Trait Implementations§
Source§impl<RectToPlaceId, GroupId> Debug for GroupedRectsToPlace<RectToPlaceId, GroupId>
impl<RectToPlaceId, GroupId> Debug for GroupedRectsToPlace<RectToPlaceId, GroupId>
Auto Trait Implementations§
impl<RectToPlaceId, GroupId> Freeze for GroupedRectsToPlace<RectToPlaceId, GroupId>
impl<RectToPlaceId, GroupId> RefUnwindSafe for GroupedRectsToPlace<RectToPlaceId, GroupId>where
RectToPlaceId: RefUnwindSafe,
GroupId: RefUnwindSafe,
impl<RectToPlaceId, GroupId> Send for GroupedRectsToPlace<RectToPlaceId, GroupId>
impl<RectToPlaceId, GroupId> Sync for GroupedRectsToPlace<RectToPlaceId, GroupId>
impl<RectToPlaceId, GroupId> Unpin for GroupedRectsToPlace<RectToPlaceId, GroupId>
impl<RectToPlaceId, GroupId> UnwindSafe for GroupedRectsToPlace<RectToPlaceId, GroupId>where
RectToPlaceId: RefUnwindSafe,
GroupId: RefUnwindSafe,
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