pub enum GlyphEffect {
None = 0,
Underline = 8_192,
Strikethrough = 16_384,
}Expand description
Text decoration effect applied to a glyph.
Variants§
None = 0
No special effect applied to the glyph.
Underline = 8_192
Underline effect applied below the glyph.
Strikethrough = 16_384
Strikethrough effect applied through the glyph.
Implementations§
Source§impl GlyphEffect
impl GlyphEffect
Sourcepub fn from_u16(v: u16) -> GlyphEffect
pub fn from_u16(v: u16) -> GlyphEffect
Decodes a glyph effect from the effect bits of a 16-bit glyph ID.
Trait Implementations§
Source§impl Clone for GlyphEffect
impl Clone for GlyphEffect
Source§fn clone(&self) -> GlyphEffect
fn clone(&self) -> GlyphEffect
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 GlyphEffect
impl Debug for GlyphEffect
Source§impl PartialEq for GlyphEffect
impl PartialEq for GlyphEffect
impl Copy for GlyphEffect
impl Eq for GlyphEffect
impl StructuralPartialEq for GlyphEffect
Auto Trait Implementations§
impl Freeze for GlyphEffect
impl RefUnwindSafe for GlyphEffect
impl Send for GlyphEffect
impl Sync for GlyphEffect
impl Unpin for GlyphEffect
impl UnsafeUnpin for GlyphEffect
impl UnwindSafe for GlyphEffect
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