pub struct Limits {
pub max_nodes: usize,
pub max_loops: usize,
pub max_depth: usize,
pub max_trip: u32,
pub max_cost: u64,
}Expand description
Resource limits for IntGraph::from_bytes.
Fields§
§max_nodes: usizeMaximum node count.
max_loops: usizeMaximum loop count.
max_depth: usizeMaximum loop nesting depth.
max_trip: u32Maximum trip cap of one loop.
max_cost: u64Maximum Σ nodes × enclosing trip caps (work per evaluation).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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