pub struct StructuredProgram { /* private fields */ }Expand description
A compiled immutable structured program shared by sequence matchers.
Implementations§
Source§impl StructuredProgram
impl StructuredProgram
Sourcepub fn compile(ir: Arc<SchemaIR>) -> Result<Arc<Self>, CompileError>
pub fn compile(ir: Arc<SchemaIR>) -> Result<Arc<Self>, CompileError>
Compiles a schema using the default structured resource limits.
Sourcepub fn new_matcher(
self: &Arc<Self>,
) -> Result<StructuredMatcher, StructuredMatcherError>
pub fn new_matcher( self: &Arc<Self>, ) -> Result<StructuredMatcher, StructuredMatcherError>
Constructs a fresh mutable sequence matcher sharing this program.
Sourcepub fn uses_incremental_backend(&self) -> bool
pub fn uses_incremental_backend(&self) -> bool
Whether this program uses the incremental backend.
Sourcepub fn retained_plan_bytes(&self) -> Option<usize>
pub fn retained_plan_bytes(&self) -> Option<usize>
Bytes retained by the compiled incremental plan; reference programs have no such plan.
Auto Trait Implementations§
impl Freeze for StructuredProgram
impl RefUnwindSafe for StructuredProgram
impl Send for StructuredProgram
impl Sync for StructuredProgram
impl Unpin for StructuredProgram
impl UnsafeUnpin for StructuredProgram
impl UnwindSafe for StructuredProgram
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