Enum write_fonts::tables::gdef::GlyphClassDef
source · #[repr(u16)]pub enum GlyphClassDef {
Base = 1,
Ligature = 2,
Mark = 3,
Component = 4,
// some variants omitted
}Expand description
Used in the Glyph Class Definition Table
Variants§
Implementations§
source§impl GlyphClassDef
impl GlyphClassDef
sourcepub fn new(raw: u16) -> GlyphClassDef
pub fn new(raw: u16) -> GlyphClassDef
Create from a raw scalar.
This will never fail; unknown values will be mapped to the Unknown variant
Trait Implementations§
source§impl Clone for GlyphClassDef
impl Clone for GlyphClassDef
source§fn clone(&self) -> GlyphClassDef
fn clone(&self) -> GlyphClassDef
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 GlyphClassDef
impl Debug for GlyphClassDef
source§impl Default for GlyphClassDef
impl Default for GlyphClassDef
source§fn default() -> GlyphClassDef
fn default() -> GlyphClassDef
Returns the “default value” for a type. Read more
source§impl FontWrite for GlyphClassDef
impl FontWrite for GlyphClassDef
source§fn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
Write our data and information about offsets into this TableWriter.
source§fn table_type(&self) -> TableType
fn table_type(&self) -> TableType
The type of this table. Read more
source§impl Hash for GlyphClassDef
impl Hash for GlyphClassDef
source§impl Ord for GlyphClassDef
impl Ord for GlyphClassDef
source§fn cmp(&self, other: &GlyphClassDef) -> Ordering
fn cmp(&self, other: &GlyphClassDef) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for GlyphClassDef
impl PartialEq for GlyphClassDef
source§fn eq(&self, other: &GlyphClassDef) -> bool
fn eq(&self, other: &GlyphClassDef) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for GlyphClassDef
impl PartialOrd for GlyphClassDef
source§fn partial_cmp(&self, other: &GlyphClassDef) -> Option<Ordering>
fn partial_cmp(&self, other: &GlyphClassDef) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Scalar for GlyphClassDef
impl Scalar for GlyphClassDef
source§fn from_raw(raw: <GlyphClassDef as Scalar>::Raw) -> GlyphClassDef
fn from_raw(raw: <GlyphClassDef as Scalar>::Raw) -> GlyphClassDef
Create an instance of this type from raw big-endian bytes
impl Copy for GlyphClassDef
impl Eq for GlyphClassDef
impl StructuralEq for GlyphClassDef
impl StructuralPartialEq for GlyphClassDef
Auto Trait Implementations§
impl RefUnwindSafe for GlyphClassDef
impl Send for GlyphClassDef
impl Sync for GlyphClassDef
impl Unpin for GlyphClassDef
impl UnwindSafe for GlyphClassDef
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§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<T> FixedSize for Twhere
T: Scalar,
impl<T> FixedSize for Twhere
T: Scalar,
source§const RAW_BYTE_LEN: usize = _
const RAW_BYTE_LEN: usize = _
The raw size of this type, in bytes. Read more
source§impl<T> FromObjRef<BigEndian<T>> for T
impl<T> FromObjRef<BigEndian<T>> for T
source§fn from_obj_ref(from: &BigEndian<T>, _: FontData<'_>) -> T
fn from_obj_ref(from: &BigEndian<T>, _: FontData<'_>) -> T
Convert
from to an instance of Self, using the provided data to resolve offsets.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.