#[repr(u8)]pub enum Transforms {
Normal = 0,
Normal90 = 1,
Normal180 = 2,
Normal270 = 3,
Flipped = 4,
Flipped90 = 5,
Flipped180 = 6,
Flipped270 = 7,
}Expand description
This enum provides the different monitor transforms
Variants§
Normal = 0
No transform
Normal90 = 1
Rotated 90 degrees
Normal180 = 2
Rotated 180 degrees
Normal270 = 3
Rotated 270 degrees
Flipped = 4
Flipped
Flipped90 = 5
Flipped and rotated 90 degrees
Flipped180 = 6
Flipped and rotated 180 degrees
Flipped270 = 7
Flipped and rotated 270 degrees
Trait Implementations§
Source§impl Clone for Transforms
impl Clone for Transforms
Source§fn clone(&self) -> Transforms
fn clone(&self) -> Transforms
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Transforms
Source§impl Debug for Transforms
impl Debug for Transforms
Source§impl<'de> Deserialize<'de> for Transforms
impl<'de> Deserialize<'de> for Transforms
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Transforms
Source§impl PartialEq for Transforms
impl PartialEq for Transforms
Source§fn eq(&self, other: &Transforms) -> bool
fn eq(&self, other: &Transforms) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Transforms
impl Serialize for Transforms
impl StructuralPartialEq for Transforms
Auto Trait Implementations§
impl Freeze for Transforms
impl RefUnwindSafe for Transforms
impl Send for Transforms
impl Sync for Transforms
impl Unpin for Transforms
impl UnsafeUnpin for Transforms
impl UnwindSafe for Transforms
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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