pub enum TextDirection {
Ltr,
Rtl,
}Expand description
The direction of the text. One of "ltr" (left-to-right) or "rtl" (right-to-left).
This property determines on which side is truncated in response to the limit parameter.
Default value: "ltr"
Variants§
Trait Implementations§
Source§impl Clone for TextDirection
impl Clone for TextDirection
Source§fn clone(&self) -> TextDirection
fn clone(&self) -> TextDirection
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 TextDirection
impl Debug for TextDirection
Source§impl<'de> Deserialize<'de> for TextDirection
impl<'de> Deserialize<'de> for TextDirection
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 From<TextDirection> for Dir
impl From<TextDirection> for Dir
Source§fn from(value: TextDirection) -> Self
fn from(value: TextDirection) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TextDirection
impl RefUnwindSafe for TextDirection
impl Send for TextDirection
impl Sync for TextDirection
impl Unpin for TextDirection
impl UnsafeUnpin for TextDirection
impl UnwindSafe for TextDirection
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