pub enum WritingMode {
HorizontalTb,
VerticalRl,
VerticalLr,
SidewaysRl,
SidewaysLr,
}Expand description
Writing mode for text direction.
Controls the direction in which text flows within a block. This is particularly important for CJK (Chinese, Japanese, Korean) languages which can be written vertically.
Variants§
HorizontalTb
Horizontal text, top-to-bottom block flow (default). Used for Latin, Cyrillic, Arabic, Hebrew scripts.
VerticalRl
Vertical text, right-to-left block flow. Traditional Chinese, Japanese, Korean.
VerticalLr
Vertical text, left-to-right block flow. Used for Mongolian script.
SidewaysRl
Sideways text, right-to-left (90° clockwise rotation).
SidewaysLr
Sideways text, left-to-right (90° counter-clockwise rotation).
Trait Implementations§
Source§impl Clone for WritingMode
impl Clone for WritingMode
Source§fn clone(&self) -> WritingMode
fn clone(&self) -> WritingMode
Returns a duplicate 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 WritingMode
impl Debug for WritingMode
Source§impl Default for WritingMode
impl Default for WritingMode
Source§fn default() -> WritingMode
fn default() -> WritingMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WritingMode
impl<'de> Deserialize<'de> for WritingMode
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 PartialEq for WritingMode
impl PartialEq for WritingMode
Source§impl Serialize for WritingMode
impl Serialize for WritingMode
impl Copy for WritingMode
impl Eq for WritingMode
impl StructuralPartialEq for WritingMode
Auto Trait Implementations§
impl Freeze for WritingMode
impl RefUnwindSafe for WritingMode
impl Send for WritingMode
impl Sync for WritingMode
impl Unpin for WritingMode
impl UnsafeUnpin for WritingMode
impl UnwindSafe for WritingMode
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.