pub struct PackedRuleCatalog {
pub rule_meta: Vec<RuleMeta>,
pub transitions: Vec<u32>,
pub accept: Vec<u32>,
pub class_maps: Vec<u32>,
pub rejected_rules: Vec<BatchRuleRejection>,
}Expand description
Packed rule catalog uploaded to device storage buffers.
Fields§
§rule_meta: Vec<RuleMeta>Dense per-rule metadata table.
transitions: Vec<u32>Deduplicated flattened byte-class-COMPRESSED DFA transition storage.
Indexed transitions[rule.transition_base + state * rule.num_classes + class] where class = class_maps[rule.class_map_base + byte].
accept: Vec<u32>Deduplicated flattened DFA accept storage.
class_maps: Vec<u32>Deduplicated flattened 256-entry-per-rule byte→class maps. Indexed
class_maps[rule.class_map_base + byte].
rejected_rules: Vec<BatchRuleRejection>Rules rejected during validation or dense-slot assignment.
Auto Trait Implementations§
impl Freeze for PackedRuleCatalog
impl RefUnwindSafe for PackedRuleCatalog
impl Send for PackedRuleCatalog
impl Sync for PackedRuleCatalog
impl Unpin for PackedRuleCatalog
impl UnsafeUnpin for PackedRuleCatalog
impl UnwindSafe for PackedRuleCatalog
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