#[non_exhaustive]pub struct CompilerOptions {
pub executable_cache_bytes: usize,
pub trie_cache_bytes: usize,
pub bind_policy: BindPolicy,
}Expand description
Cache budgets a Compiler owns, in bytes rather than entry counts.
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.executable_cache_bytes: usizeByte budget for the vocabulary-independent executable cache. 0 disables caching.
trie_cache_bytes: usizeByte budget for the shared vocabulary byte-trie cache. 0 disables retention only.
bind_policy: BindPolicyHow SchemaProgram::bind picks a regular-schema bind mode.
Implementations§
Source§impl CompilerOptions
impl CompilerOptions
Sourcepub fn with_executable_cache_bytes(self, bytes: usize) -> Self
pub fn with_executable_cache_bytes(self, bytes: usize) -> Self
Sets the executable cache budget, in bytes. 0 disables caching.
Sourcepub fn with_trie_cache_bytes(self, bytes: usize) -> Self
pub fn with_trie_cache_bytes(self, bytes: usize) -> Self
Sets the shared vocabulary byte-trie cache budget, in bytes.
Sourcepub fn with_bind_policy(self, policy: BindPolicy) -> Self
pub fn with_bind_policy(self, policy: BindPolicy) -> Self
Sets how SchemaProgram::bind picks a regular-schema bind mode.
Trait Implementations§
Source§impl Clone for CompilerOptions
impl Clone for CompilerOptions
Source§fn clone(&self) -> CompilerOptions
fn clone(&self) -> CompilerOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompilerOptions
Source§impl Debug for CompilerOptions
impl Debug for CompilerOptions
Auto Trait Implementations§
impl Freeze for CompilerOptions
impl RefUnwindSafe for CompilerOptions
impl Send for CompilerOptions
impl Sync for CompilerOptions
impl Unpin for CompilerOptions
impl UnsafeUnpin for CompilerOptions
impl UnwindSafe for CompilerOptions
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