Enum ndk::font::FamilyVariant
source · #[repr(u32)]pub enum FamilyVariant {
Compact = 1,
Default = 0,
Elegant = 2,
}
Available on crate feature
api-level-29
only.Expand description
Corresponds to AFAMILY_VARIANT_*
.
Variants§
Compact = 1
A family variant value for the compact font family variant. The compact font family has Latin-based vertical metrics.
Default = 0
A family variant value for the system default variant.
Elegant = 2
A family variant value for the elegant font family variant. The elegant font family may have larger vertical metrics than Latin font.
Trait Implementations§
source§impl Debug for FamilyVariant
impl Debug for FamilyVariant
source§impl Ord for FamilyVariant
impl Ord for FamilyVariant
source§fn cmp(&self, other: &FamilyVariant) -> Ordering
fn cmp(&self, other: &FamilyVariant) -> 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 for FamilyVariant
impl PartialEq for FamilyVariant
source§fn eq(&self, other: &FamilyVariant) -> bool
fn eq(&self, other: &FamilyVariant) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FamilyVariant
impl PartialOrd for FamilyVariant
source§fn partial_cmp(&self, other: &FamilyVariant) -> Option<Ordering>
fn partial_cmp(&self, other: &FamilyVariant) -> 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 moreimpl Eq for FamilyVariant
impl StructuralEq for FamilyVariant
impl StructuralPartialEq for FamilyVariant
Auto Trait Implementations§
impl RefUnwindSafe for FamilyVariant
impl Send for FamilyVariant
impl Sync for FamilyVariant
impl Unpin for FamilyVariant
impl UnwindSafe for FamilyVariant
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