Enum dbusmenu_glib::TextDirection
source · #[non_exhaustive]
pub enum TextDirection {
None,
Ltr,
Rtl,
}
Expand description
The direction of text that the strings that this server will be sending strings as.
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.
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 Display for TextDirection
impl Display for TextDirection
source§impl Hash for TextDirection
impl Hash for TextDirection
source§impl Ord for TextDirection
impl Ord for TextDirection
source§fn cmp(&self, other: &TextDirection) -> Ordering
fn cmp(&self, other: &TextDirection) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<TextDirection> for TextDirection
impl PartialEq<TextDirection> 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 ==
.source§impl PartialOrd<TextDirection> for TextDirection
impl PartialOrd<TextDirection> for TextDirection
source§fn partial_cmp(&self, other: &TextDirection) -> Option<Ordering>
fn partial_cmp(&self, other: &TextDirection) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more