pub struct Limits {
pub max_depth: usize,
pub max_nodes: usize,
pub max_vars: usize,
pub max_rows: usize,
}Expand description
资源预算。
Fields§
§max_depth: usizeAST 最大深度(根为 1)。
max_nodes: usizeAST 最大节点数。
max_vars: usize允许做 3^n 枚举的变量数上限。
max_rows: usize一次枚举允许生成的最大行数。
Trait Implementations§
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
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