pub struct RectanglePackOk<RectToPlaceId: PartialEq + Eq + Hash, BinId: PartialEq + Eq + Hash> { /* private fields */ }
Expand description
Information about successfully packed rectangles.
Implementations§
Source§impl<RectToPlaceId: PartialEq + Eq + Hash, BinId: PartialEq + Eq + Hash> RectanglePackOk<RectToPlaceId, BinId>
impl<RectToPlaceId: PartialEq + Eq + Hash, BinId: PartialEq + Eq + Hash> RectanglePackOk<RectToPlaceId, BinId>
Sourcepub fn packed_locations(
&self,
) -> &KeyValMap<RectToPlaceId, (BinId, PackedLocation)>
pub fn packed_locations( &self, ) -> &KeyValMap<RectToPlaceId, (BinId, PackedLocation)>
Indicates where every incoming rectangle was placed
Trait Implementations§
Source§impl<RectToPlaceId: Debug + PartialEq + Eq + Hash, BinId: Debug + PartialEq + Eq + Hash> Debug for RectanglePackOk<RectToPlaceId, BinId>
impl<RectToPlaceId: Debug + PartialEq + Eq + Hash, BinId: Debug + PartialEq + Eq + Hash> Debug for RectanglePackOk<RectToPlaceId, BinId>
Source§impl<RectToPlaceId: PartialEq + PartialEq + Eq + Hash, BinId: PartialEq + PartialEq + Eq + Hash> PartialEq for RectanglePackOk<RectToPlaceId, BinId>
impl<RectToPlaceId: PartialEq + PartialEq + Eq + Hash, BinId: PartialEq + PartialEq + Eq + Hash> PartialEq for RectanglePackOk<RectToPlaceId, BinId>
Source§fn eq(&self, other: &RectanglePackOk<RectToPlaceId, BinId>) -> bool
fn eq(&self, other: &RectanglePackOk<RectToPlaceId, BinId>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<RectToPlaceId: PartialEq + Eq + Hash, BinId: PartialEq + Eq + Hash> StructuralPartialEq for RectanglePackOk<RectToPlaceId, BinId>
Auto Trait Implementations§
impl<RectToPlaceId, BinId> Freeze for RectanglePackOk<RectToPlaceId, BinId>
impl<RectToPlaceId, BinId> RefUnwindSafe for RectanglePackOk<RectToPlaceId, BinId>where
RectToPlaceId: RefUnwindSafe,
BinId: RefUnwindSafe,
impl<RectToPlaceId, BinId> Send for RectanglePackOk<RectToPlaceId, BinId>
impl<RectToPlaceId, BinId> Sync for RectanglePackOk<RectToPlaceId, BinId>
impl<RectToPlaceId, BinId> Unpin for RectanglePackOk<RectToPlaceId, BinId>
impl<RectToPlaceId, BinId> UnwindSafe for RectanglePackOk<RectToPlaceId, BinId>where
RectToPlaceId: RefUnwindSafe,
BinId: 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