pub enum RtlLanguage {
Arabic,
Hebrew,
Urdu,
Persian,
Pashto,
Sindhi,
Kurdish,
Yiddish,
}Expand description
RTL language presets with appropriate default fonts
Variants§
Implementations§
Source§impl RtlLanguage
impl RtlLanguage
Sourcepub fn default_font(&self) -> &'static str
pub fn default_font(&self) -> &'static str
Get the recommended default font for this language
Sourcepub fn direction(&self) -> TextDirection
pub fn direction(&self) -> TextDirection
Get the text direction (always RTL for these languages)
Trait Implementations§
Source§impl Clone for RtlLanguage
impl Clone for RtlLanguage
Source§fn clone(&self) -> RtlLanguage
fn clone(&self) -> RtlLanguage
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 RtlLanguage
impl Debug for RtlLanguage
Source§impl PartialEq for RtlLanguage
impl PartialEq for RtlLanguage
impl Copy for RtlLanguage
impl Eq for RtlLanguage
impl StructuralPartialEq for RtlLanguage
Auto Trait Implementations§
impl Freeze for RtlLanguage
impl RefUnwindSafe for RtlLanguage
impl Send for RtlLanguage
impl Sync for RtlLanguage
impl Unpin for RtlLanguage
impl UnwindSafe for RtlLanguage
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.