pub enum Rotation {
R0,
R90,
R180,
R270,
}
Expand description
A Manhattan rotation: 0, 90, 180, or 270 degrees counterclockwise.
Variants§
R0
0 degrees; no rotation.
R90
90 degrees counterclockwise.
R180
180 degrees counterclockwise.
R270
270 degrees counterclockwise.
Implementations§
Trait Implementations§
Source§impl AddAssign for Rotation
impl AddAssign for Rotation
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl<'de> Deserialize<'de> for Rotation
impl<'de> Deserialize<'de> for Rotation
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
Source§impl From<Rotation> for TransformationMatrix
impl From<Rotation> for TransformationMatrix
Source§impl Ord for Rotation
impl Ord for Rotation
Source§impl PartialOrd for Rotation
impl PartialOrd for Rotation
Source§impl SubAssign for Rotation
impl SubAssign for Rotation
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for Rotation
impl Eq for Rotation
impl StructuralPartialEq for Rotation
Auto Trait Implementations§
impl Freeze for Rotation
impl RefUnwindSafe for Rotation
impl Send for Rotation
impl Sync for Rotation
impl Unpin for Rotation
impl UnwindSafe for Rotation
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