Enum webrender_api::font::FontHinting
source · #[repr(u8)]pub enum FontHinting {
None = 0,
Mono = 1,
Light = 2,
Normal = 3,
LCD = 4,
}
Variants§
Trait Implementations§
source§impl Clone for FontHinting
impl Clone for FontHinting
source§fn clone(&self) -> FontHinting
fn clone(&self) -> FontHinting
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 FontHinting
impl Debug for FontHinting
source§impl<'de> Deserialize<'de> for FontHinting
impl<'de> Deserialize<'de> for FontHinting
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for FontHinting
impl Hash for FontHinting
source§impl MallocSizeOf for FontHinting
impl MallocSizeOf for FontHinting
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl Ord for FontHinting
impl Ord for FontHinting
source§fn cmp(&self, other: &FontHinting) -> Ordering
fn cmp(&self, other: &FontHinting) -> 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 FontHinting
impl PartialEq for FontHinting
source§fn eq(&self, other: &FontHinting) -> bool
fn eq(&self, other: &FontHinting) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FontHinting
impl PartialOrd for FontHinting
source§fn partial_cmp(&self, other: &FontHinting) -> Option<Ordering>
fn partial_cmp(&self, other: &FontHinting) -> 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 moresource§impl Serialize for FontHinting
impl Serialize for FontHinting
impl Copy for FontHinting
impl Eq for FontHinting
impl StructuralPartialEq for FontHinting
Auto Trait Implementations§
impl Freeze for FontHinting
impl RefUnwindSafe for FontHinting
impl Send for FontHinting
impl Sync for FontHinting
impl Unpin for FontHinting
impl UnwindSafe for FontHinting
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