Struct rectangle_pack::RectanglePackOk
source · 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
This method 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> RefUnwindSafe for RectanglePackOk<RectToPlaceId, BinId>where
BinId: RefUnwindSafe,
RectToPlaceId: 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
BinId: 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