pub struct Budget {
pub max_depth: usize,
pub max_nodes: usize,
}Expand description
Limits applied to a single walk.
Fields§
§max_depth: usizeMaximum edges followed from the start before stopping.
max_nodes: usizeMaximum distinct entities visited.
Implementations§
Source§impl Budget
impl Budget
Sourcepub const DEFAULT: Self
pub const DEFAULT: Self
A budget large enough for well-formed building models.
Depth 64 clears the deepest real spatial nesting by a wide margin; 1_000_000 nodes bounds memory without truncating a large model.
Sourcepub const fn with_depth(max_depth: usize) -> Self
pub const fn with_depth(max_depth: usize) -> Self
A budget with the given depth and the default node ceiling.
Trait Implementations§
impl Copy for Budget
impl Eq for Budget
impl StructuralPartialEq for Budget
Auto Trait Implementations§
impl Freeze for Budget
impl RefUnwindSafe for Budget
impl Send for Budget
impl Sync for Budget
impl Unpin for Budget
impl UnsafeUnpin for Budget
impl UnwindSafe for Budget
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