#[non_exhaustive]pub struct ContextConfig {
pub max_nodes: u32,
pub hash_seed: u64,
pub fact_work: u32,
}Expand description
Configuration of a Context.
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.max_nodes: u32The maximum number of nodes. Building past it fails with Error::ArenaFull.
hash_seed: u64Seed for the interning table’s layout. It never changes any result.
fact_work: u32The most transfer functions one fact query may run before answering top.
Implementations§
Source§impl ContextConfig
impl ContextConfig
Sourcepub fn with_max_nodes(self, n: u32) -> Self
pub fn with_max_nodes(self, n: u32) -> Self
Sets max_nodes.
Sourcepub fn with_fact_work(self, n: u32) -> Self
pub fn with_fact_work(self, n: u32) -> Self
Sets fact_work.
Sourcepub fn with_hash_seed(self, seed: u64) -> Self
pub fn with_hash_seed(self, seed: u64) -> Self
Sets hash_seed.
Trait Implementations§
Source§impl Clone for ContextConfig
impl Clone for ContextConfig
Source§impl Debug for ContextConfig
impl Debug for ContextConfig
Source§impl Default for ContextConfig
impl Default for ContextConfig
impl Eq for ContextConfig
Source§impl PartialEq for ContextConfig
impl PartialEq for ContextConfig
impl StructuralPartialEq for ContextConfig
Auto Trait Implementations§
impl Freeze for ContextConfig
impl RefUnwindSafe for ContextConfig
impl Send for ContextConfig
impl Sync for ContextConfig
impl Unpin for ContextConfig
impl UnsafeUnpin for ContextConfig
impl UnwindSafe for ContextConfig
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