pub struct MarkClassDefinition {
pub mark_class: MarkClass,
pub anchor: Anchor,
pub glyphs: GlyphContainer,
}Expand description
A definition of a glyph in a mark class, associating it with an anchor point.
See the notes for MarkClass to understand how this differs from the
Python fontTools representation.
Fields§
§mark_class: MarkClassThe name of the mark class
anchor: AnchorThe anchor associated with this mark class glyph
glyphs: GlyphContainerThe glyphs in this mark class
Implementations§
Source§impl MarkClassDefinition
impl MarkClassDefinition
Sourcepub fn new(
mark_class: MarkClass,
anchor: Anchor,
glyphs: GlyphContainer,
) -> Self
pub fn new( mark_class: MarkClass, anchor: Anchor, glyphs: GlyphContainer, ) -> Self
Create a new markClass definition.
Trait Implementations§
Source§impl AsFea for MarkClassDefinition
impl AsFea for MarkClassDefinition
Source§impl Clone for MarkClassDefinition
impl Clone for MarkClassDefinition
Source§fn clone(&self) -> MarkClassDefinition
fn clone(&self) -> MarkClassDefinition
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 MarkClassDefinition
impl Debug for MarkClassDefinition
Source§impl From<MarkClassDef> for MarkClassDefinition
impl From<MarkClassDef> for MarkClassDefinition
Source§fn from(val: MarkClassDef) -> Self
fn from(val: MarkClassDef) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MarkClassDefinition
impl PartialEq for MarkClassDefinition
impl Eq for MarkClassDefinition
impl StructuralPartialEq for MarkClassDefinition
Auto Trait Implementations§
impl Freeze for MarkClassDefinition
impl RefUnwindSafe for MarkClassDefinition
impl Send for MarkClassDefinition
impl Sync for MarkClassDefinition
impl Unpin for MarkClassDefinition
impl UnsafeUnpin for MarkClassDefinition
impl UnwindSafe for MarkClassDefinition
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.