#[non_exhaustive]#[repr(u32)]pub enum TextDirection {
Auto = 0,
Ltr = 1,
Rtl = 2,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto = 0
automatic text direction based on text and language
Ltr = 1
left-to-right
Rtl = 2
right-to-left
Implementations§
Trait Implementations§
source§impl Clone for TextDirection
impl Clone for TextDirection
source§fn clone(&self) -> TextDirection
fn clone(&self) -> TextDirection
Returns a copy 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 PartialEq for TextDirection
impl PartialEq for TextDirection
source§fn eq(&self, other: &TextDirection) -> bool
fn eq(&self, other: &TextDirection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TextDirection
impl StructuralPartialEq for TextDirection
Auto Trait Implementations§
impl RefUnwindSafe for TextDirection
impl Send for TextDirection
impl Sync for TextDirection
impl Unpin 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