Enum webmanifest::Orientation [−][src]
pub enum Orientation { Any, Natural, Landscape, LandscapPrimary, LandscapSecondary, Portrait, PortraitPrimary, PortraitSecondary, }
Defines the default orientation for all the website's top level browsing contexts.
Example
let name = "My Cool Application"; let manifest = Manifest::builder(name) .orientation(Orientation::Portrait) .build()?;
Variants
Any
Natural
Landscape
LandscapPrimary
LandscapSecondary
Portrait
PortraitPrimary
PortraitSecondary
Trait Implementations
impl Debug for Orientation
[src]
impl Debug for Orientation
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Orientation
[src]
impl Clone for Orientation
fn clone(&self) -> Orientation
[src]
fn clone(&self) -> Orientation
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for Orientation
impl Send for Orientation
impl Sync for Orientation
impl Sync for Orientation