pub struct ChainedSequenceRule<'a> {
data: FontData<'a>,
}Expand description
Part of ChainedSequenceContextFormat1
Fields§
§data: FontData<'a>Implementations§
Source§impl<'a> ChainedSequenceRule<'a>
impl<'a> ChainedSequenceRule<'a>
pub const MIN_SIZE: usize
Sourcepub fn resolve_offset<O: Offset, R: FontRead<'a>>(
&self,
offset: O,
) -> Result<R, ReadError>
pub fn resolve_offset<O: Offset, R: FontRead<'a>>( &self, offset: O, ) -> Result<R, ReadError>
Resolve the provided offset from the start of this table.
Sourcepub fn offset_data(&self) -> FontData<'a>
pub fn offset_data(&self) -> FontData<'a>
Return a reference to this table’s raw data.
We use this in the compile crate to resolve offsets.
Sourcepub fn shape(&self) -> &Self
👎Deprecated: just use the base type directly
pub fn shape(&self) -> &Self
Return a reference to the table’s ‘Shape’ struct.
This is a low level implementation detail, but it can be useful in some cases where you want to know things about a table’s layout, such as the byte offsets of specific fields.
Sourcepub fn backtrack_glyph_count(&self) -> u16
pub fn backtrack_glyph_count(&self) -> u16
Number of glyphs in the backtrack sequence
Sourcepub fn backtrack_sequence(&self) -> &'a [BigEndian<GlyphId16>]
pub fn backtrack_sequence(&self) -> &'a [BigEndian<GlyphId16>]
Array of backtrack glyph IDs
Sourcepub fn input_glyph_count(&self) -> u16
pub fn input_glyph_count(&self) -> u16
Number of glyphs in the input sequence
Sourcepub fn input_sequence(&self) -> &'a [BigEndian<GlyphId16>]
pub fn input_sequence(&self) -> &'a [BigEndian<GlyphId16>]
Array of input glyph IDs—start with second glyph
Sourcepub fn lookahead_glyph_count(&self) -> u16
pub fn lookahead_glyph_count(&self) -> u16
Number of glyphs in the lookahead sequence
Sourcepub fn lookahead_sequence(&self) -> &'a [BigEndian<GlyphId16>]
pub fn lookahead_sequence(&self) -> &'a [BigEndian<GlyphId16>]
Array of lookahead glyph IDs
Sourcepub fn seq_lookup_count(&self) -> u16
pub fn seq_lookup_count(&self) -> u16
Number of SequenceLookupRecords
Sourcepub fn seq_lookup_records(&self) -> &'a [SequenceLookupRecord]
pub fn seq_lookup_records(&self) -> &'a [SequenceLookupRecord]
Array of SequenceLookupRecords
pub fn backtrack_glyph_count_byte_range(&self) -> Range<usize> ⓘ
pub fn backtrack_sequence_byte_range(&self) -> Range<usize> ⓘ
pub fn input_glyph_count_byte_range(&self) -> Range<usize> ⓘ
pub fn input_sequence_byte_range(&self) -> Range<usize> ⓘ
pub fn lookahead_glyph_count_byte_range(&self) -> Range<usize> ⓘ
pub fn lookahead_sequence_byte_range(&self) -> Range<usize> ⓘ
pub fn seq_lookup_count_byte_range(&self) -> Range<usize> ⓘ
pub fn seq_lookup_records_byte_range(&self) -> Range<usize> ⓘ
Trait Implementations§
Source§impl<'a> Clone for ChainedSequenceRule<'a>
impl<'a> Clone for ChainedSequenceRule<'a>
Source§fn clone(&self) -> ChainedSequenceRule<'a>
fn clone(&self) -> ChainedSequenceRule<'a>
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<'a> FontRead<'a> for ChainedSequenceRule<'a>
impl<'a> FontRead<'a> for ChainedSequenceRule<'a>
Source§impl<'a> MinByteRange<'a> for ChainedSequenceRule<'a>
impl<'a> MinByteRange<'a> for ChainedSequenceRule<'a>
Auto Trait Implementations§
impl<'a> Freeze for ChainedSequenceRule<'a>
impl<'a> RefUnwindSafe for ChainedSequenceRule<'a>
impl<'a> Send for ChainedSequenceRule<'a>
impl<'a> Sync for ChainedSequenceRule<'a>
impl<'a> Unpin for ChainedSequenceRule<'a>
impl<'a> UnsafeUnpin for ChainedSequenceRule<'a>
impl<'a> UnwindSafe for ChainedSequenceRule<'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