Enum Transforms
#[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§
§impl Clone for Transforms
impl Clone for Transforms
§fn clone(&self) -> Transforms
fn clone(&self) -> Transforms
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 more§impl Debug for Transforms
impl Debug for Transforms
§impl<'de> Deserialize<'de> for Transforms
impl<'de> Deserialize<'de> for Transforms
§fn deserialize<D>(
deserializer: D,
) -> Result<Transforms, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Transforms, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for Transforms
impl PartialEq for Transforms
§impl Serialize for Transforms
impl Serialize for Transforms
§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Transforms
impl Eq 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 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,
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