pub enum GridSide {
Top,
Front,
Bottom,
Left,
Right,
Back,
MiddleX,
MiddleY,
MiddleZ,
}Variants§
Implementations§
Source§impl GridSide
impl GridSide
pub fn idx(&self) -> usize
pub fn from_idx(idx: usize) -> GridSide
pub fn middle_layer_from_axis(axis: &Axis) -> GridSide
pub fn axis(&self) -> Axis
pub fn order(&self) -> CubeSliceOrder
pub fn is_middle(&self) -> bool
pub fn middle_layer_adjacent(self) -> GridSide
Trait Implementations§
impl Copy for GridSide
impl Eq for GridSide
impl StructuralPartialEq for GridSide
Auto Trait Implementations§
impl Freeze for GridSide
impl RefUnwindSafe for GridSide
impl Send for GridSide
impl Sync for GridSide
impl Unpin for GridSide
impl UnwindSafe for GridSide
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