pub struct GlyphClassDefStatement {
pub base_glyphs: Option<GlyphContainer>,
pub ligature_glyphs: Option<GlyphContainer>,
pub mark_glyphs: Option<GlyphContainer>,
pub component_glyphs: Option<GlyphContainer>,
pub location: Range<usize>,
}Expand description
A GDEF table GlyphClassDef statement
Example: GlyphClassDef [a b c], [f_f_i f_f_l], [acute grave], [n.sc t.sc];
Or with named classes: GlyphClassDef @BASE, @LIGATURES, @MARKS, @COMPONENT;
The four parameters represent base glyphs, ligature glyphs, mark glyphs, and component glyphs respectively. Any parameter can be None.
Fields§
§base_glyphs: Option<GlyphContainer>The base glyphs class (or None)
ligature_glyphs: Option<GlyphContainer>The ligature glyphs class (or None)
mark_glyphs: Option<GlyphContainer>The mark glyphs class (or None)
component_glyphs: Option<GlyphContainer>The component glyphs class (or None)
location: Range<usize>The location of the statement in the source
Implementations§
Source§impl GlyphClassDefStatement
impl GlyphClassDefStatement
Sourcepub fn new(
base_glyphs: Option<GlyphContainer>,
ligature_glyphs: Option<GlyphContainer>,
mark_glyphs: Option<GlyphContainer>,
component_glyphs: Option<GlyphContainer>,
location: Range<usize>,
) -> Self
pub fn new( base_glyphs: Option<GlyphContainer>, ligature_glyphs: Option<GlyphContainer>, mark_glyphs: Option<GlyphContainer>, component_glyphs: Option<GlyphContainer>, location: Range<usize>, ) -> Self
Creates a new GlyphClassDef statement.
Trait Implementations§
Source§impl AsFea for GlyphClassDefStatement
impl AsFea for GlyphClassDefStatement
Source§impl Clone for GlyphClassDefStatement
impl Clone for GlyphClassDefStatement
Source§fn clone(&self) -> GlyphClassDefStatement
fn clone(&self) -> GlyphClassDefStatement
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 GlyphClassDefStatement
impl Debug for GlyphClassDefStatement
Source§impl From<GdefClassDef> for GlyphClassDefStatement
impl From<GdefClassDef> for GlyphClassDefStatement
Source§fn from(val: GdefClassDef) -> Self
fn from(val: GdefClassDef) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GlyphClassDefStatement
impl PartialEq for GlyphClassDefStatement
impl Eq for GlyphClassDefStatement
impl StructuralPartialEq for GlyphClassDefStatement
Auto Trait Implementations§
impl Freeze for GlyphClassDefStatement
impl RefUnwindSafe for GlyphClassDefStatement
impl Send for GlyphClassDefStatement
impl Sync for GlyphClassDefStatement
impl Unpin for GlyphClassDefStatement
impl UnsafeUnpin for GlyphClassDefStatement
impl UnwindSafe for GlyphClassDefStatement
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§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.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.