Enum write_fonts::tables::cmap::PlatformId
source · #[repr(u16)]pub enum PlatformId {
Unicode,
Macintosh,
ISO,
Windows,
Custom,
// some variants omitted
}Variants§
Implementations§
source§impl PlatformId
impl PlatformId
sourcepub fn new(raw: u16) -> PlatformId
pub fn new(raw: u16) -> PlatformId
Create from a raw scalar.
This will never fail; unknown values will be mapped to the Unknown variant
Trait Implementations§
source§impl Clone for PlatformId
impl Clone for PlatformId
source§fn clone(&self) -> PlatformId
fn clone(&self) -> PlatformId
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 PlatformId
impl Debug for PlatformId
source§impl Default for PlatformId
impl Default for PlatformId
source§fn default() -> PlatformId
fn default() -> PlatformId
Returns the “default value” for a type. Read more
source§impl FontWrite for PlatformId
impl FontWrite for PlatformId
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.
fn name(&self) -> &'static str
source§impl Hash for PlatformId
impl Hash for PlatformId
source§impl Ord for PlatformId
impl Ord for PlatformId
source§fn cmp(&self, other: &PlatformId) -> Ordering
fn cmp(&self, other: &PlatformId) -> 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<PlatformId> for PlatformId
impl PartialEq<PlatformId> for PlatformId
source§fn eq(&self, other: &PlatformId) -> bool
fn eq(&self, other: &PlatformId) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<PlatformId> for PlatformId
impl PartialOrd<PlatformId> for PlatformId
source§fn partial_cmp(&self, other: &PlatformId) -> Option<Ordering>
fn partial_cmp(&self, other: &PlatformId) -> 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 PlatformId
impl Scalar for PlatformId
impl Copy for PlatformId
impl Eq for PlatformId
impl StructuralEq for PlatformId
impl StructuralPartialEq for PlatformId
Auto Trait Implementations§
impl RefUnwindSafe for PlatformId
impl Send for PlatformId
impl Sync for PlatformId
impl Unpin for PlatformId
impl UnwindSafe for PlatformId
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> FixedSize for Twhere
T: Scalar,
<T as Scalar>::Raw: FixedSize,
impl<T> FixedSize for Twhere T: Scalar, <T as Scalar>::Raw: FixedSize,
source§const RAW_BYTE_LEN: usize = <<T as Scalar>::Raw>::RAW_BYTE_LEN
const RAW_BYTE_LEN: usize = <<T as Scalar>::Raw>::RAW_BYTE_LEN
The raw size of this type, in bytes. Read more
source§impl<T> FromObjRef<BigEndian<T>> for Twhere
T: Scalar,
BigEndian<T>: Copy,
impl<T> FromObjRef<BigEndian<T>> for Twhere T: Scalar, BigEndian<T>: Copy,
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<T> ReadScalar for Twhere
T: Scalar + FixedSize,
<T as Scalar>::Raw: ReadScalar,
impl<T> ReadScalar for Twhere T: Scalar + FixedSize, <T as Scalar>::Raw: ReadScalar,
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.