pub struct MappingIndex {
codepoint_subtable: Option<u16>,
codepoint_subtable_is_symbol: bool,
variant_subtable: Option<u16>,
cmap12_limits: CmapIterLimits,
}
Expand description
Cacheable indices of selected mapping tables for materializing a character map.
Since Charmap
carries a lifetime, it is difficult to store in a cache.
This type serves as an acceleration structure that allows for construction
of a character map while skipping the search for the most suitable Unicode
mappings.
Fields§
§codepoint_subtable: Option<u16>
Index of Unicode or symbol mapping subtable.
codepoint_subtable_is_symbol: bool
True if the above is a symbol mapping.
variant_subtable: Option<u16>
Index of Unicode variation selector subtable.
cmap12_limits: CmapIterLimits
Limits for iterating a cmap format 12 subtable.
Implementations§
Trait Implementations§
Source§impl Clone for MappingIndex
impl Clone for MappingIndex
Source§fn clone(&self) -> MappingIndex
fn clone(&self) -> MappingIndex
Returns a duplicate 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 MappingIndex
impl Debug for MappingIndex
Source§impl Default for MappingIndex
impl Default for MappingIndex
Source§fn default() -> MappingIndex
fn default() -> MappingIndex
Returns the “default value” for a type. Read more
impl Copy for MappingIndex
Auto Trait Implementations§
impl Freeze for MappingIndex
impl RefUnwindSafe for MappingIndex
impl Send for MappingIndex
impl Sync for MappingIndex
impl Unpin for MappingIndex
impl UnwindSafe for MappingIndex
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