pub struct LookupInfo {
pub props: u32,
pub is_subst: bool,
pub is_reversed: bool,
pub digest: hb_set_digest_t,
pub subtable_cache_user_idx: Option<usize>,
pub subtables: Vec<SubtableInfo>,
}Expand description
Cached information about a lookup.
Fields§
§props: u32§is_subst: bool§is_reversed: bool§digest: hb_set_digest_t§subtable_cache_user_idx: Option<usize>§subtables: Vec<SubtableInfo>Implementations§
Source§impl LookupInfo
impl LookupInfo
pub fn new(data: &LookupData<'_>) -> Option<Self>
pub fn props(&self) -> u32
pub fn is_reverse(&self) -> bool
pub fn digest(&self) -> &hb_set_digest_t
Source§impl LookupInfo
impl LookupInfo
pub(crate) fn apply( &self, ctx: &mut hb_ot_apply_context_t<'_>, table_data: &[u8], use_hot_subtable_cache: bool, ) -> Option<()>
pub(crate) fn cache_enter(&self, ctx: &mut hb_ot_apply_context_t<'_>) -> bool
pub(crate) fn cache_leave(&self, ctx: &mut hb_ot_apply_context_t<'_>)
Source§impl LookupInfo
impl LookupInfo
pub fn would_apply( &self, face: &hb_font_t<'_>, ctx: &WouldApplyContext<'_>, ) -> Option<bool>
Trait Implementations§
Source§impl Default for LookupInfo
impl Default for LookupInfo
Source§fn default() -> LookupInfo
fn default() -> LookupInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LookupInfo
impl RefUnwindSafe for LookupInfo
impl Send for LookupInfo
impl Sync for LookupInfo
impl Unpin for LookupInfo
impl UnsafeUnpin for LookupInfo
impl UnwindSafe for LookupInfo
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