pub enum FlowDirection {
Ltr,
Rtl,
}Expand description
Horizontal text flow direction.
Controls whether children of a horizontal flex layout are placed left-to-right or right-to-left.
Variants§
Implementations§
Source§impl FlowDirection
impl FlowDirection
Sourcepub fn locale_is_rtl(locale: &str) -> bool
pub fn locale_is_rtl(locale: &str) -> bool
Return true if a locale tag (e.g. "ar", "he", "fa") is
typically RTL. Checks the primary language subtag only.
Sourcepub fn from_locale(locale: &str) -> Self
pub fn from_locale(locale: &str) -> Self
Detect flow direction from a locale tag.
Trait Implementations§
Source§impl Clone for FlowDirection
impl Clone for FlowDirection
Source§fn clone(&self) -> FlowDirection
fn clone(&self) -> FlowDirection
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 FlowDirection
impl Debug for FlowDirection
Source§impl Default for FlowDirection
impl Default for FlowDirection
Source§fn default() -> FlowDirection
fn default() -> FlowDirection
Returns the “default value” for a type. Read more
Source§impl Hash for FlowDirection
impl Hash for FlowDirection
Source§impl PartialEq for FlowDirection
impl PartialEq for FlowDirection
impl Copy for FlowDirection
impl Eq for FlowDirection
impl StructuralPartialEq for FlowDirection
Auto Trait Implementations§
impl Freeze for FlowDirection
impl RefUnwindSafe for FlowDirection
impl Send for FlowDirection
impl Sync for FlowDirection
impl Unpin for FlowDirection
impl UnwindSafe for FlowDirection
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