pub struct RuleProgram { /* private fields */ }Expand description
A compiled rule program: named groups of rules in priority order.
Implementations§
Source§impl RuleProgram
impl RuleProgram
Sourcepub fn compile(src: &str) -> Result<RuleProgram, CompileError>
pub fn compile(src: &str) -> Result<RuleProgram, CompileError>
Compiles .bwr source with the default limits.
Sourcepub fn compile_with(
src: &str,
opts: &CompileOptions,
) -> Result<RuleProgram, CompileError>
pub fn compile_with( src: &str, opts: &CompileOptions, ) -> Result<RuleProgram, CompileError>
Compiles .bwr source.
Sourcepub fn diagnostics(&self) -> &[Diagnostic]
pub fn diagnostics(&self) -> &[Diagnostic]
Warnings and notes produced while compiling.
Trait Implementations§
Source§impl Clone for RuleProgram
impl Clone for RuleProgram
Auto Trait Implementations§
impl Freeze for RuleProgram
impl RefUnwindSafe for RuleProgram
impl Send for RuleProgram
impl Sync for RuleProgram
impl Unpin for RuleProgram
impl UnsafeUnpin for RuleProgram
impl UnwindSafe for RuleProgram
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