pub enum CmapSubtable {
Format0 {
language: u16,
glyph_id_array: Box<[u8; 256]>,
},
Format4(CmapSubtableFormat4),
Format6 {
language: u16,
first_code: u16,
glyph_id_array: Vec<u16>,
},
Format10 {
language: u32,
start_char_code: u32,
glyph_id_array: Vec<u16>,
},
Format12(CmapSubtableFormat12),
}
Variants§
Implementations§
source§impl CmapSubtable
impl CmapSubtable
Trait Implementations§
source§impl Clone for CmapSubtable
impl Clone for CmapSubtable
source§fn clone(&self) -> CmapSubtable
fn clone(&self) -> CmapSubtable
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 CmapSubtable
impl Debug for CmapSubtable
source§impl PartialEq for CmapSubtable
impl PartialEq for CmapSubtable
source§fn eq(&self, other: &CmapSubtable) -> bool
fn eq(&self, other: &CmapSubtable) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl WriteBinary for CmapSubtable
impl WriteBinary for CmapSubtable
source§fn write<C: WriteContext>(
ctxt: &mut C,
table: CmapSubtable,
) -> Result<(), WriteError>
fn write<C: WriteContext>( ctxt: &mut C, table: CmapSubtable, ) -> Result<(), WriteError>
Write the binary representation of Self to
ctxt
.impl StructuralPartialEq for CmapSubtable
Auto Trait Implementations§
impl Freeze for CmapSubtable
impl RefUnwindSafe for CmapSubtable
impl Send for CmapSubtable
impl Sync for CmapSubtable
impl Unpin for CmapSubtable
impl UnwindSafe for CmapSubtable
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T, HostType> WriteBinaryDep<HostType> for Twhere
T: WriteBinary<HostType>,
impl<T, HostType> WriteBinaryDep<HostType> for Twhere
T: WriteBinary<HostType>,
§type Output = <T as WriteBinary<HostType>>::Output
type Output = <T as WriteBinary<HostType>>::Output
The type of the value returned by
write_dep
.source§fn write_dep<C>(
ctxt: &mut C,
val: HostType,
_: <T as WriteBinaryDep<HostType>>::Args,
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError>where
C: WriteContext,
fn write_dep<C>(
ctxt: &mut C,
val: HostType,
_: <T as WriteBinaryDep<HostType>>::Args,
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError>where
C: WriteContext,
Write the binary representation of Self to
ctxt
.