Enum block_mesh::AxisPermutation
source · [−]pub enum AxisPermutation {
Xyz,
Zxy,
Yzx,
Zyx,
Xzy,
Yxz,
}
Expand description
One of the six possible {N, U, V}
–> {X, Y, Z}
mappings.
This can be combined with a -1
or +1
sign for the Normal axis to
make an OrientedBlockFace
.
See the geometry
module documentation for more
information on {N, U, V}
space.
Even and Odd
Even permutations:
Odd permutations:
Variants
Xyz
Zxy
Yzx
Zyx
Xzy
Yxz
Implementations
sourceimpl AxisPermutation
impl AxisPermutation
pub const fn even_with_normal_axis(axis: Axis) -> Self
pub const fn odd_with_normal_axis(axis: Axis) -> Self
pub const fn sign(&self) -> i32
Trait Implementations
sourceimpl Clone for AxisPermutation
impl Clone for AxisPermutation
sourcefn clone(&self) -> AxisPermutation
fn clone(&self) -> AxisPermutation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AxisPermutation
impl Debug for AxisPermutation
sourceimpl PartialEq<AxisPermutation> for AxisPermutation
impl PartialEq<AxisPermutation> for AxisPermutation
impl Copy for AxisPermutation
impl Eq for AxisPermutation
impl StructuralEq for AxisPermutation
impl StructuralPartialEq for AxisPermutation
Auto Trait Implementations
impl RefUnwindSafe for AxisPermutation
impl Send for AxisPermutation
impl Sync for AxisPermutation
impl Unpin for AxisPermutation
impl UnwindSafe for AxisPermutation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more