pub struct MarkClass {
pub name: SmolStr,
}Expand description
The name of a mark class
Note that this differs from the Python fontTools representation. In
Python, a MarkClass object contains MarkClassDefinition objects
for the glyphs in the class, and the MarkClassDefinition objects
recursively refer to the MarkClass they belong to. In Rust, the
MarkClass is just a name, and the relationship between the class name
and the glyphs and their anchor points is stored at the feature file level.
The name should not begin with @.
Fields§
§name: SmolStrThe name of the mark class, without the leading @
Implementations§
Trait Implementations§
Source§impl From<GlyphClassDef> for MarkClass
impl From<GlyphClassDef> for MarkClass
Source§fn from(val: GlyphClassDef) -> Self
fn from(val: GlyphClassDef) -> Self
Converts to this type from the input type.
impl Eq for MarkClass
impl StructuralPartialEq for MarkClass
Auto Trait Implementations§
impl Freeze for MarkClass
impl RefUnwindSafe for MarkClass
impl Send for MarkClass
impl Sync for MarkClass
impl Unpin for MarkClass
impl UnsafeUnpin for MarkClass
impl UnwindSafe for MarkClass
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.