Enum webmanifest::Direction [−][src]
pub enum Direction { Ltr, Rtl, Auto, }
Specifies the primary text direction for the name
, short_name
, and
description
members.
Example
let name = "My Cool Application"; let lang = "en-US"; let manifest = Manifest::builder(name) .direction(Direction::Ltr) .build()?;
Variants
Ltr
left-to-right
Rtl
right-to-left
Auto
Hints to the browser to use the Unicode bidirectional algorithm to make a best guess about the text's direction.
Trait Implementations
impl Debug for Direction
[src]
impl Debug for Direction
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 Direction
[src]
impl Clone for Direction