#[non_exhaustive]pub struct CompileOptions {
pub limits: CompileLimits,
}Expand description
Options for RuleProgram::compile_with.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.limits: CompileLimitsSize limits (rule text may be untrusted).
Implementations§
Source§impl CompileOptions
impl CompileOptions
Sourcepub fn with_limits(self, value: CompileLimits) -> Self
pub fn with_limits(self, value: CompileLimits) -> Self
Sets limits.
Trait Implementations§
Source§impl Clone for CompileOptions
impl Clone for CompileOptions
Source§impl Debug for CompileOptions
impl Debug for CompileOptions
Auto Trait Implementations§
impl Forget for CompileOptions
impl Freeze for CompileOptions
impl Move for CompileOptions
impl RefUnwindSafe for CompileOptions
impl Send for CompileOptions
impl Sync for CompileOptions
impl Unpin for CompileOptions
impl UnsafeUnpin for CompileOptions
impl UnwindSafe for CompileOptions
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