pub enum GlyphFormat {
Alpha8,
Rgba8,
}Variants§
Alpha8
tightly packed coverage tinted by the text color
Rgba8
tightly packed rgba with encoded srgb channels multiplied by alpha keeps intrinsic colors and receives text alpha once
Implementations§
Source§impl GlyphFormat
impl GlyphFormat
pub const fn bytes_per_pixel(self) -> usize
Trait Implementations§
Source§impl Clone for GlyphFormat
impl Clone for GlyphFormat
impl Copy for GlyphFormat
Source§impl Debug for GlyphFormat
impl Debug for GlyphFormat
Source§impl Default for GlyphFormat
impl Default for GlyphFormat
impl Eq for GlyphFormat
Source§impl PartialEq for GlyphFormat
impl PartialEq for GlyphFormat
impl StructuralPartialEq for GlyphFormat
Auto Trait Implementations§
impl Forget for GlyphFormat
impl Freeze for GlyphFormat
impl Move for GlyphFormat
impl RefUnwindSafe for GlyphFormat
impl Send for GlyphFormat
impl Sync for GlyphFormat
impl Unpin for GlyphFormat
impl UnsafeUnpin 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.