Struct re_types::view_coordinates::SignedAxis3
source · pub struct SignedAxis3 {
pub sign: Sign,
pub axis: Axis3,
}Expand description
One of: +X, -X, +Y, -Y, +Z, -Z,
i.e. one of the six cardinal direction in 3D space.
Fields§
§sign: SignPositive or negative.
axis: Axis3One of X, Y, Z.
Implementations§
source§impl SignedAxis3
impl SignedAxis3
sourcepub const POSITIVE_X: Self = _
pub const POSITIVE_X: Self = _
+X
sourcepub const NEGATIVE_X: Self = _
pub const NEGATIVE_X: Self = _
-X
sourcepub const POSITIVE_Y: Self = _
pub const POSITIVE_Y: Self = _
+Y
sourcepub const NEGATIVE_Y: Self = _
pub const NEGATIVE_Y: Self = _
-Y
sourcepub const POSITIVE_Z: Self = _
pub const POSITIVE_Z: Self = _
+Z
sourcepub const NEGATIVE_Z: Self = _
pub const NEGATIVE_Z: Self = _
-Z
pub const fn new(sign: Sign, axis: Axis3) -> Self
Trait Implementations§
source§impl Clone for SignedAxis3
impl Clone for SignedAxis3
source§fn clone(&self) -> SignedAxis3
fn clone(&self) -> SignedAxis3
Returns a copy 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 SignedAxis3
impl Debug for SignedAxis3
source§impl Display for SignedAxis3
impl Display for SignedAxis3
source§impl FromStr for SignedAxis3
impl FromStr for SignedAxis3
source§impl PartialEq for SignedAxis3
impl PartialEq for SignedAxis3
source§fn eq(&self, other: &SignedAxis3) -> bool
fn eq(&self, other: &SignedAxis3) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for SignedAxis3
impl Eq for SignedAxis3
impl StructuralPartialEq for SignedAxis3
Auto Trait Implementations§
impl Freeze for SignedAxis3
impl RefUnwindSafe for SignedAxis3
impl Send for SignedAxis3
impl Sync for SignedAxis3
impl Unpin for SignedAxis3
impl UnwindSafe for SignedAxis3
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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