pub struct Placement3D {
pub name: String,
pub x: u32,
pub y: u32,
pub z: u32,
pub width: u32,
pub height: u32,
pub depth: u32,
pub rotation: Rotation3D,
}Expand description
A single placed box on a packed bin.
Fields§
§name: StringName of the originating demand.
x: u32X offset of the box’s near-bottom-left corner.
y: u32Y offset of the box’s near-bottom-left corner.
z: u32Z offset of the box’s near-bottom-left corner.
width: u32Width of the placed box after rotation.
height: u32Height of the placed box after rotation.
depth: u32Depth of the placed box after rotation.
rotation: Rotation3DRotation applied relative to the demand’s declared (w, h, d).
Trait Implementations§
Source§impl Clone for Placement3D
impl Clone for Placement3D
Source§fn clone(&self) -> Placement3D
fn clone(&self) -> Placement3D
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Placement3D
impl Debug for Placement3D
Source§impl<'de> Deserialize<'de> for Placement3D
impl<'de> Deserialize<'de> for Placement3D
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Placement3D
impl PartialEq for Placement3D
Source§impl Serialize for Placement3D
impl Serialize for Placement3D
impl Eq for Placement3D
impl StructuralPartialEq for Placement3D
Auto Trait Implementations§
impl Freeze for Placement3D
impl RefUnwindSafe for Placement3D
impl Send for Placement3D
impl Sync for Placement3D
impl Unpin for Placement3D
impl UnsafeUnpin for Placement3D
impl UnwindSafe for Placement3D
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more