Enum gufo_common::orientation::Orientation
source · #[repr(u16)]pub enum Orientation {
Id = 1,
Rotation90 = 8,
Rotation180 = 3,
Rotation270 = 6,
Mirrored = 2,
MirroredRotation90 = 5,
MirroredRotation180 = 4,
MirroredRotation270 = 7,
}Expand description
Operations that have to be applied to orient the image correctly
Variants§
Id = 1
Rotation90 = 8
Rotation180 = 3
Rotation270 = 6
Mirrored = 2
MirroredRotation90 = 5
MirroredRotation180 = 4
MirroredRotation270 = 7
Implementations§
Trait Implementations§
source§impl Clone for Orientation
impl Clone for Orientation
source§fn clone(&self) -> Orientation
fn clone(&self) -> Orientation
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 Orientation
impl Debug for Orientation
source§impl From<Orientation> for u16
impl From<Orientation> for u16
Convert enum to it’s discriminant value
source§fn from(v: Orientation) -> u16
fn from(v: Orientation) -> u16
Converts to this type from the input type.
source§impl PartialEq for Orientation
impl PartialEq for Orientation
source§impl TryFrom<u16> for Orientation
impl TryFrom<u16> for Orientation
Create enum from it’s discriminant value
impl Copy for Orientation
impl Eq for Orientation
impl StructuralPartialEq for Orientation
Auto Trait Implementations§
impl Freeze for Orientation
impl RefUnwindSafe for Orientation
impl Send for Orientation
impl Sync for Orientation
impl Unpin for Orientation
impl UnwindSafe for Orientation
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)