Enum re_types::view_coordinates::ViewDir
source · pub enum ViewDir {
Up = 1,
Down = 2,
Right = 3,
Left = 4,
Forward = 5,
Back = 6,
}Expand description
The six cardinal directions for 3D view-space and image-space.
Variants§
Implementations§
source§impl ViewDir
impl ViewDir
sourcepub fn from_ascii_char(c: u8) -> Result<Self, String>
pub fn from_ascii_char(c: u8) -> Result<Self, String>
Convert an upper case letter to one of the six cardinal directions.
- ‘U’ =>
Self::Up - ‘D’ =>
Self::Down - ‘R’ =>
Self::Right - ‘L’ =>
Self::Left - ‘F’ =>
Self::Forward - ‘B’ =>
Self::Back
sourcepub fn short(&self) -> &'static str
pub fn short(&self) -> &'static str
Represent this direction as the first letter of the direction’s name, in uppercase.
Self::Up=> ‘U’Self::Down=> ‘D’Self::Right=> ‘R’Self::Left=> ‘L’Self::Forward=> ‘F’Self::Back=> ‘B’
Trait Implementations§
source§impl PartialEq for ViewDir
impl PartialEq for ViewDir
impl Copy for ViewDir
impl Eq for ViewDir
impl StructuralPartialEq for ViewDir
Auto Trait Implementations§
impl Freeze for ViewDir
impl RefUnwindSafe for ViewDir
impl Send for ViewDir
impl Sync for ViewDir
impl Unpin for ViewDir
impl UnwindSafe for ViewDir
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