Struct rectangle_pack::GroupedRectsToPlace
source · 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> RefUnwindSafe for GroupedRectsToPlace<RectToPlaceId, GroupId>where
GroupId: RefUnwindSafe,
RectToPlaceId: 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
GroupId: RefUnwindSafe,
RectToPlaceId: 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