pub struct GlyphStyle(/* private fields */);Expand description
Defines the script and style associated with a single glyph.
Implementations§
Source§impl GlyphStyle
impl GlyphStyle
Sourcepub const fn from_raw_parts(
style_index: u16,
is_non_base: bool,
is_digit: bool,
) -> Self
pub const fn from_raw_parts( style_index: u16, is_non_base: bool, is_digit: bool, ) -> Self
Constructs a new glyph style from the given style index and properties.
Sourcepub const fn is_unassigned(self) -> bool
pub const fn is_unassigned(self) -> bool
Returns true if this glyph doesn’t have an assigned style.
Sourcepub const fn is_non_base(self) -> bool
pub const fn is_non_base(self) -> bool
Returns true if this glyph is a non-base (usually a mark).
Sourcepub fn style_class(self) -> Option<&'static StyleClass>
pub fn style_class(self) -> Option<&'static StyleClass>
Returns the associated style class for this glyph.
Sourcepub const fn style_index(self) -> Option<u16>
pub const fn style_index(self) -> Option<u16>
Returns the index of the style class for this class.
Trait Implementations§
Source§impl Clone for GlyphStyle
impl Clone for GlyphStyle
Source§fn clone(&self) -> GlyphStyle
fn clone(&self) -> GlyphStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GlyphStyle
impl Debug for GlyphStyle
Source§impl Default for GlyphStyle
impl Default for GlyphStyle
Source§impl PartialEq for GlyphStyle
impl PartialEq for GlyphStyle
Source§fn eq(&self, other: &GlyphStyle) -> bool
fn eq(&self, other: &GlyphStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GlyphStyle
impl Eq for GlyphStyle
impl StructuralPartialEq for GlyphStyle
Auto Trait Implementations§
impl Freeze for GlyphStyle
impl RefUnwindSafe for GlyphStyle
impl Send for GlyphStyle
impl Sync for GlyphStyle
impl Unpin for GlyphStyle
impl UnsafeUnpin for GlyphStyle
impl UnwindSafe for GlyphStyle
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