Struct ttf_parser::gpos::PairSet
source · pub struct PairSet<'a> {
data: &'a [u8],
flags: (ValueFormatFlags, ValueFormatFlags),
record_len: u8,
}
Expand description
A ValueRecord
pairs set used by PairAdjustment
.
Fields§
§data: &'a [u8]
§flags: (ValueFormatFlags, ValueFormatFlags)
§record_len: u8
Implementations§
source§impl<'a> PairSet<'a>
impl<'a> PairSet<'a>
fn parse( data: &'a [u8], flags: (ValueFormatFlags, ValueFormatFlags), ) -> Option<Self>
fn binary_search(&self, second: GlyphId) -> Option<&'a [u8]>
sourcepub fn get(&self, second: GlyphId) -> Option<(ValueRecord<'a>, ValueRecord<'a>)>
pub fn get(&self, second: GlyphId) -> Option<(ValueRecord<'a>, ValueRecord<'a>)>
Returns a ValueRecord
pair using the second glyph.
Trait Implementations§
impl<'a> Copy for PairSet<'a>
Auto Trait Implementations§
impl<'a> Freeze for PairSet<'a>
impl<'a> RefUnwindSafe for PairSet<'a>
impl<'a> Send for PairSet<'a>
impl<'a> Sync for PairSet<'a>
impl<'a> Unpin for PairSet<'a>
impl<'a> UnwindSafe for PairSet<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)