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 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 GlyphFormat
impl Debug for GlyphFormat
source§impl Hash for GlyphFormat
impl Hash for GlyphFormat
source§impl PartialEq for GlyphFormat
impl PartialEq for GlyphFormat
source§fn eq(&self, other: &GlyphFormat) -> bool
fn eq(&self, other: &GlyphFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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> 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