pub(crate) struct EncodingTables<'a> {
cmap: Vec<Option<EncodingTable<'a>>>,
dmap: Vec<Option<EncodingTable<'a>>>,
}Expand description
Parsed, selectable SFNT character mappings, indexed by table and encoding record.
Fields§
§cmap: Vec<Option<EncodingTable<'a>>>§dmap: Vec<Option<EncodingTable<'a>>>Implementations§
Source§impl<'a> EncodingTables<'a>
impl<'a> EncodingTables<'a>
pub(crate) fn read(font: &impl TableProvider<'a>) -> Self
pub(crate) fn iter(&self) -> impl Iterator<Item = Encoding> + '_
fn table(&self, encoding: Encoding) -> Option<&EncodingTable<'a>>
pub(crate) fn map(&self, encoding: Encoding, code: u32) -> Option<GlyphId>
fn codes( &self, encoding: Encoding, limits: CmapIterLimits, ) -> impl Iterator<Item = (u32, GlyphId)> + '_
Trait Implementations§
Source§impl<'a> Clone for EncodingTables<'a>
impl<'a> Clone for EncodingTables<'a>
Source§fn clone(&self) -> EncodingTables<'a>
fn clone(&self) -> EncodingTables<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Default for EncodingTables<'a>
impl<'a> Default for EncodingTables<'a>
Source§fn default() -> EncodingTables<'a>
fn default() -> EncodingTables<'a>
Returns the “default value” for a type. Read more
Source§impl<'yoke> Yokeable<'yoke> for EncodingTables<'static>
impl<'yoke> Yokeable<'yoke> for EncodingTables<'static>
Source§type Output = EncodingTables<'yoke>
type Output = EncodingTables<'yoke>
This type MUST be
Self with the 'static replaced with 'a, i.e. Self<'a>Source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
Auto Trait Implementations§
impl<'a> Freeze for EncodingTables<'a>
impl<'a> RefUnwindSafe for EncodingTables<'a>
impl<'a> Send for EncodingTables<'a>
impl<'a> Sync for EncodingTables<'a>
impl<'a> Unpin for EncodingTables<'a>
impl<'a> UnsafeUnpin for EncodingTables<'a>
impl<'a> UnwindSafe for EncodingTables<'a>
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