#[repr(C)]pub struct Encoding {
kind: EncodingKind,
index: u32,
platform_id: u16,
encoding_id: u16,
}Expand description
A selectable character mapping of a font.
This fixed-size value contains no borrowed data. It is a key for the font that produced it; passing it to another font has no defined mapping.
Fields§
§kind: EncodingKind§index: u32§platform_id: u16§encoding_id: u16Implementations§
Source§impl Encoding
impl Encoding
Sourcepub fn kind(self) -> EncodingKind
pub fn kind(self) -> EncodingKind
Returns the encoding kind.
Sourcepub fn sfnt_index(self) -> Option<(Tag, u32)>
pub fn sfnt_index(self) -> Option<(Tag, u32)>
Returns the tag of the table that holds this encoding’s record, cmap
or DMAP, and the index of the record within that table.
Returns None for an encoding from a Type 1 or standalone CFF font.
Trait Implementations§
impl Copy for Encoding
impl Eq for Encoding
impl StructuralPartialEq for Encoding
Auto Trait Implementations§
impl Freeze for Encoding
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnsafeUnpin for Encoding
impl UnwindSafe for Encoding
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