struct CollectFeaturesContext<'a> {
script_count: u16,
langsys_count: u16,
feature_index_count: u16,
visited_script: IntSet<u32>,
visited_langsys: IntSet<u32>,
feature_indices: &'a mut IntSet<u16>,
feature_indices_filter: IntSet<u16>,
table_head: usize,
}
Fields§
§script_count: u16
§langsys_count: u16
§feature_index_count: u16
§visited_script: IntSet<u32>
§visited_langsys: IntSet<u32>
§feature_indices: &'a mut IntSet<u16>
§feature_indices_filter: IntSet<u16>
§table_head: usize
Implementations§
Source§impl<'a> CollectFeaturesContext<'a>
impl<'a> CollectFeaturesContext<'a>
pub(crate) fn new( features: &IntSet<Tag>, table_head: usize, feature_list: &'a FeatureList<'a>, feature_indices: &'a mut IntSet<u16>, ) -> Self
Sourcepub(crate) fn script_visited(&mut self, s: &Script<'_>) -> bool
pub(crate) fn script_visited(&mut self, s: &Script<'_>) -> bool
Return true if the script limit has been exceeded or the script is visited before
Sourcepub(crate) fn langsys_visited(&mut self, langsys: &LangSys<'_>) -> bool
pub(crate) fn langsys_visited(&mut self, langsys: &LangSys<'_>) -> bool
Return true if the Langsys limit has been exceeded or the Langsys is visited before
Sourcepub(crate) fn feature_indices_limit_exceeded(&mut self, count: u16) -> bool
pub(crate) fn feature_indices_limit_exceeded(&mut self, count: u16) -> bool
Returns true if the feature limit has been exceeded
Auto Trait Implementations§
impl<'a> !Freeze for CollectFeaturesContext<'a>
impl<'a> RefUnwindSafe for CollectFeaturesContext<'a>
impl<'a> Send for CollectFeaturesContext<'a>
impl<'a> Sync for CollectFeaturesContext<'a>
impl<'a> Unpin for CollectFeaturesContext<'a>
impl<'a> !UnwindSafe for CollectFeaturesContext<'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