pub enum DisplayRotation {
Deg0,
Deg90,
Deg180,
Deg270,
}
Expand description
Some Fuchsia device displays are mounted rotated. This value represents The supported rotations and can be used by views to rotate their content to display appropriately when running on the frame buffer.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for DisplayRotation
impl Clone for DisplayRotation
Source§fn clone(&self) -> DisplayRotation
fn clone(&self) -> DisplayRotation
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 DisplayRotation
impl Debug for DisplayRotation
Source§impl Default for DisplayRotation
impl Default for DisplayRotation
Source§impl<'de> Deserialize<'de> for DisplayRotation
impl<'de> Deserialize<'de> for DisplayRotation
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<DisplayRotation> for Angle<Coord>
impl From<DisplayRotation> for Angle<Coord>
Source§fn from(display_rotation: DisplayRotation) -> Self
fn from(display_rotation: DisplayRotation) -> Self
Converts to this type from the input type.
Source§impl FromStr for DisplayRotation
impl FromStr for DisplayRotation
Source§impl PartialEq for DisplayRotation
impl PartialEq for DisplayRotation
Source§impl Serialize for DisplayRotation
impl Serialize for DisplayRotation
Source§impl TryFrom<u32> for DisplayRotation
impl TryFrom<u32> for DisplayRotation
impl Copy for DisplayRotation
impl Eq for DisplayRotation
impl StructuralPartialEq for DisplayRotation
Auto Trait Implementations§
impl Freeze for DisplayRotation
impl RefUnwindSafe for DisplayRotation
impl Send for DisplayRotation
impl Sync for DisplayRotation
impl Unpin for DisplayRotation
impl UnwindSafe for DisplayRotation
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§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
)