Enum NorthOrientation
#[non_exhaustive]pub enum NorthOrientation {
Up,
Right,
Down,
Left,
Unknown(u32),
}Expand description
Map north orientation values used by viewport options.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
§impl NorthOrientation
impl NorthOrientation
pub fn from_raw(raw: u32) -> NorthOrientation
pub fn as_raw(self) -> u32
Trait Implementations§
§impl Clone for NorthOrientation
impl Clone for NorthOrientation
§fn clone(&self) -> NorthOrientation
fn clone(&self) -> NorthOrientation
Returns a duplicate 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 more§impl Debug for NorthOrientation
impl Debug for NorthOrientation
§impl Hash for NorthOrientation
impl Hash for NorthOrientation
§impl PartialEq for NorthOrientation
impl PartialEq for NorthOrientation
impl Copy for NorthOrientation
impl Eq for NorthOrientation
impl StructuralPartialEq for NorthOrientation
Auto Trait Implementations§
impl Freeze for NorthOrientation
impl RefUnwindSafe for NorthOrientation
impl Send for NorthOrientation
impl Sync for NorthOrientation
impl Unpin for NorthOrientation
impl UnsafeUnpin for NorthOrientation
impl UnwindSafe for NorthOrientation
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