pub struct EngineConfig {
pub enforce_shrink: bool,
pub max_rounds: Option<usize>,
}Expand description
Tunables for an Engine.
Fields§
§enforce_shrink: boolWhen true, every child span must be strictly smaller than its
parent — an extra invariant for “always divides” passes. When
false (the default), a child may cover its parent exactly, which
is legitimate: a file containing exactly one function parses as that
one function. Either way children must stay contained in their
parent and on the same source revision.
Termination does not depend on this setting: every node is processed
at most once per scheduled pass, and runs are bounded by
max_rounds.
max_rounds: Option<usize>Hard cap on rounds per run. None (the default) means one round per
scheduled pass.
Trait Implementations§
Source§impl Clone for EngineConfig
impl Clone for EngineConfig
Source§fn clone(&self) -> EngineConfig
fn clone(&self) -> EngineConfig
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 EngineConfig
Source§impl Debug for EngineConfig
impl Debug for EngineConfig
Source§impl Default for EngineConfig
impl Default for EngineConfig
Source§fn default() -> EngineConfig
fn default() -> EngineConfig
Returns the “default value” for a type. Read more
impl Eq for EngineConfig
Source§impl PartialEq for EngineConfig
impl PartialEq for EngineConfig
impl StructuralPartialEq for EngineConfig
Auto Trait Implementations§
impl Freeze for EngineConfig
impl RefUnwindSafe for EngineConfig
impl Send for EngineConfig
impl Sync for EngineConfig
impl Unpin for EngineConfig
impl UnsafeUnpin for EngineConfig
impl UnwindSafe for EngineConfig
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