pub enum Face {
XMin,
XMax,
YMin,
YMax,
ZMin,
ZMax,
}Expand description
One outer face of a block.
Named rather than indexed because a caller says which side of a part is exposed, and
faces[3] is a thing nobody can read back. The axis pairs are low and high along x, y
and z in the block’s own coordinates — a Pose is what puts those in
the world.
Variants§
XMin
The x = 0 face.
XMax
The far face along x.
YMin
The y = 0 face.
YMax
The far face along y.
ZMin
The z = 0 face.
ZMax
The far face along z.
Implementations§
Trait Implementations§
impl Copy for Face
impl Eq for Face
Source§impl Ord for Face
impl Ord for Face
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Face
impl PartialOrd for Face
impl StructuralPartialEq for Face
Auto Trait Implementations§
impl Freeze for Face
impl RefUnwindSafe for Face
impl Send for Face
impl Sync for Face
impl Unpin for Face
impl UnsafeUnpin for Face
impl UnwindSafe for Face
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