Enum rich_sdl2_rust::ttf::font::FontHinting
source · #[non_exhaustive]pub enum FontHinting {
Normal,
Light,
Mono,
None,
LightSubpixel,
}
Expand description
A hinting for a font.
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.
Normal
Any hinting is not set.
Light
A light hinting.
Mono
A monochrome hinting.
None
A disabled hinting.
LightSubpixel
A light and subpixel hinting.
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 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 ==
.impl Copy for FontHinting
impl Eq for FontHinting
impl StructuralPartialEq for FontHinting
Auto Trait Implementations§
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