Enum webrender_api::font::FontRenderMode
source · #[repr(u8)]pub enum FontRenderMode {
Mono = 0,
Alpha = 1,
Subpixel = 2,
}
Variants§
Implementations§
source§impl FontRenderMode
impl FontRenderMode
pub fn limit_by(self, other: FontRenderMode) -> FontRenderMode
Trait Implementations§
source§impl Clone for FontRenderMode
impl Clone for FontRenderMode
source§fn clone(&self) -> FontRenderMode
fn clone(&self) -> FontRenderMode
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 FontRenderMode
impl Debug for FontRenderMode
source§impl Default for FontRenderMode
impl Default for FontRenderMode
source§impl<'de> Deserialize<'de> for FontRenderMode
impl<'de> Deserialize<'de> for FontRenderMode
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 FontRenderMode
impl Hash for FontRenderMode
source§impl MallocSizeOf for FontRenderMode
impl MallocSizeOf for FontRenderMode
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 FontRenderMode
impl Ord for FontRenderMode
source§fn cmp(&self, other: &FontRenderMode) -> Ordering
fn cmp(&self, other: &FontRenderMode) -> 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 FontRenderMode
impl PartialEq for FontRenderMode
source§fn eq(&self, other: &FontRenderMode) -> bool
fn eq(&self, other: &FontRenderMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FontRenderMode
impl PartialOrd for FontRenderMode
source§fn partial_cmp(&self, other: &FontRenderMode) -> Option<Ordering>
fn partial_cmp(&self, other: &FontRenderMode) -> 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 Peek for FontRenderMode
impl Peek for FontRenderMode
source§impl Poke for FontRenderMode
impl Poke for FontRenderMode
source§impl Serialize for FontRenderMode
impl Serialize for FontRenderMode
impl Copy for FontRenderMode
impl Eq for FontRenderMode
impl StructuralPartialEq for FontRenderMode
Auto Trait Implementations§
impl Freeze for FontRenderMode
impl RefUnwindSafe for FontRenderMode
impl Send for FontRenderMode
impl Sync for FontRenderMode
impl Unpin for FontRenderMode
impl UnwindSafe for FontRenderMode
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