#[repr(usize)]pub enum Axis3 {
X = 0,
Y = 1,
Z = 2,
}Expand description
A global coordinate axis (0..SPATIAL_NDIM) — used where a spatial API
needs to name one of [x, y, z] itself rather than a DOF (e.g.
Domain3::rigid_diaphragm_about’s diaphragm-normal parameter), where a
bare usize would silently also accept a rotational SpatialDof index.
as usize gives the matching translational SpatialDof/coordinate
index directly (Axis3::Y as usize == SpatialDof::Uy as usize == 1).
Variants§
Trait Implementations§
impl Copy for Axis3
impl Eq for Axis3
impl StructuralPartialEq for Axis3
Auto Trait Implementations§
impl Freeze for Axis3
impl RefUnwindSafe for Axis3
impl Send for Axis3
impl Sync for Axis3
impl Unpin for Axis3
impl UnsafeUnpin for Axis3
impl UnwindSafe for Axis3
Blanket Implementations§
impl<T> Boilerplate for T
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,
impl<T, U> Imply<T> for U
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.