pub enum Rotation3D {
Xyz,
Xzy,
Yxz,
Yzx,
Zxy,
Zyx,
}Expand description
One of the six axis-permutation rotations of a rectangular box.
Each variant denotes the permutation (input_a, input_b, input_c) where
each letter selects which declared extent maps onto the bin’s x, y, and z
axis respectively. For example, Rotation3D::Zxy applied to a box
declared as (width=3, height=5, depth=7) produces placement extents
(x_extent=7, y_extent=3, z_extent=5).
Variants§
Xyz
Identity: (w, h, d) → (w, h, d).
Xzy
(w, h, d) → (w, d, h).
Yxz
(w, h, d) → (h, w, d).
Yzx
(w, h, d) → (h, d, w).
Zxy
(w, h, d) → (d, w, h).
Zyx
(w, h, d) → (d, h, w).
Implementations§
Trait Implementations§
Source§impl Clone for Rotation3D
impl Clone for Rotation3D
Source§fn clone(&self) -> Rotation3D
fn clone(&self) -> Rotation3D
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 Rotation3D
impl Debug for Rotation3D
Source§impl<'de> Deserialize<'de> for Rotation3D
impl<'de> Deserialize<'de> for Rotation3D
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 Hash for Rotation3D
impl Hash for Rotation3D
Source§impl PartialEq for Rotation3D
impl PartialEq for Rotation3D
Source§impl Serialize for Rotation3D
impl Serialize for Rotation3D
impl Copy for Rotation3D
impl Eq for Rotation3D
impl StructuralPartialEq for Rotation3D
Auto Trait Implementations§
impl Freeze for Rotation3D
impl RefUnwindSafe for Rotation3D
impl Send for Rotation3D
impl Sync for Rotation3D
impl Unpin for Rotation3D
impl UnsafeUnpin for Rotation3D
impl UnwindSafe for Rotation3D
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