#[repr(C)]pub enum OrientationType {
Portrait = 0,
Landscape = 1,
}Expand description
Orientation type for @media (orientation: ...) CSS selectors
Variants§
Trait Implementations§
Source§impl Clone for OrientationType
impl Clone for OrientationType
Source§fn clone(&self) -> OrientationType
fn clone(&self) -> OrientationType
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 OrientationType
Source§impl Debug for OrientationType
impl Debug for OrientationType
impl Eq for OrientationType
Source§impl Hash for OrientationType
impl Hash for OrientationType
Source§impl Ord for OrientationType
impl Ord for OrientationType
Source§fn cmp(&self, other: &OrientationType) -> Ordering
fn cmp(&self, other: &OrientationType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OrientationType
impl PartialEq for OrientationType
Source§impl PartialOrd for OrientationType
impl PartialOrd for OrientationType
impl StructuralPartialEq for OrientationType
Auto Trait Implementations§
impl Freeze for OrientationType
impl RefUnwindSafe for OrientationType
impl Send for OrientationType
impl Sync for OrientationType
impl Unpin for OrientationType
impl UnsafeUnpin for OrientationType
impl UnwindSafe for OrientationType
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