Enum fea_rs::GlyphIdent
source · pub enum GlyphIdent {
Name(GlyphName),
Cid(u16),
}Expand description
Either a glyph name or a CID
Variants§
Trait Implementations§
source§impl Clone for GlyphIdent
impl Clone for GlyphIdent
source§fn clone(&self) -> GlyphIdent
fn clone(&self) -> GlyphIdent
Returns a copy 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 GlyphIdent
impl Debug for GlyphIdent
source§impl Display for GlyphIdent
impl Display for GlyphIdent
source§impl FromIterator<GlyphIdent> for GlyphMap
impl FromIterator<GlyphIdent> for GlyphMap
source§fn from_iter<T: IntoIterator<Item = GlyphIdent>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = GlyphIdent>>(iter: T) -> Self
Creates a value from an iterator. Read more
source§impl Hash for GlyphIdent
impl Hash for GlyphIdent
source§impl PartialEq<GlyphIdent> for GlyphIdent
impl PartialEq<GlyphIdent> for GlyphIdent
source§fn eq(&self, other: &GlyphIdent) -> bool
fn eq(&self, other: &GlyphIdent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for GlyphIdent
impl StructuralEq for GlyphIdent
impl StructuralPartialEq for GlyphIdent
Auto Trait Implementations§
impl RefUnwindSafe for GlyphIdent
impl Send for GlyphIdent
impl Sync for GlyphIdent
impl Unpin for GlyphIdent
impl UnwindSafe for GlyphIdent
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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.