pub enum Rotate {
RotNone,
RotCW90,
RotCCW90,
Rot180,
}Expand description
Rotation angles for the display
Rotations are applied clockwise from the default orientation.
§Examples
use unicorn_hat::Rotate;
let rotation = Rotate::RotCW90; // 90° clockwiseVariants§
RotNone
No rotation (default orientation)
RotCW90
90° clockwise rotation
RotCCW90
90° counter-clockwise rotation (270° clockwise)
Rot180
180° rotation
Implementations§
Trait Implementations§
impl Copy for Rotate
impl Eq for Rotate
impl StructuralPartialEq for Rotate
Auto Trait Implementations§
impl Freeze for Rotate
impl RefUnwindSafe for Rotate
impl Send for Rotate
impl Sync for Rotate
impl Unpin for Rotate
impl UnwindSafe for Rotate
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