pub enum GlyphFormat {
    Alpha,
    TransformedAlpha,
    Subpixel,
    TransformedSubpixel,
    Bitmap,
    ColorBitmap,
}Variants§
Implementations§
Source§impl GlyphFormat
 
impl GlyphFormat
Sourcepub fn image_format(&self, can_use_r8_format: bool) -> ImageFormat
 
pub fn image_format(&self, can_use_r8_format: bool) -> ImageFormat
Returns the ImageFormat that a glyph should be stored as in the texture cache. can_use_r8_format should be set false on platforms where we have encountered issues with R8 textures, so that we do not use them for glyphs.
Trait Implementations§
Source§impl Clone for GlyphFormat
 
impl Clone for GlyphFormat
Source§fn clone(&self) -> GlyphFormat
 
fn clone(&self) -> GlyphFormat
Returns a duplicate 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 GlyphFormat
 
impl Debug for GlyphFormat
Source§impl Hash for GlyphFormat
 
impl Hash for GlyphFormat
Source§impl PartialEq for GlyphFormat
 
impl PartialEq for GlyphFormat
Source§impl Serialize for GlyphFormat
 
impl Serialize for GlyphFormat
impl Copy for GlyphFormat
impl Eq for GlyphFormat
impl StructuralPartialEq for GlyphFormat
Auto Trait Implementations§
impl Freeze for GlyphFormat
impl RefUnwindSafe for GlyphFormat
impl Send for GlyphFormat
impl Sync for GlyphFormat
impl Unpin for GlyphFormat
impl UnwindSafe for GlyphFormat
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more