Enum webmanifest::Direction
source · pub enum Direction {
Ltr,
Rtl,
Auto,
}
Expand description
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§
source§impl<'de> Deserialize<'de> for Direction
impl<'de> Deserialize<'de> for Direction
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