pub struct PromotionSearchLimits {
pub max_depth: usize,
pub max_states: usize,
}Expand description
Bounds on the promotion-path search between number domains.
§Examples
use sim_kernel::PromotionSearchLimits;
let limits = PromotionSearchLimits::default();
assert_eq!(limits.max_depth, 8);
assert_eq!(limits.max_states, 256);Fields§
§max_depth: usizeMaximum number of conversion hops to chain.
max_states: usizeMaximum number of intermediate domain states to explore.
Trait Implementations§
Source§impl Clone for PromotionSearchLimits
impl Clone for PromotionSearchLimits
Source§fn clone(&self) -> PromotionSearchLimits
fn clone(&self) -> PromotionSearchLimits
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 PromotionSearchLimits
Source§impl Debug for PromotionSearchLimits
impl Debug for PromotionSearchLimits
Source§impl Default for PromotionSearchLimits
impl Default for PromotionSearchLimits
impl Eq for PromotionSearchLimits
Source§impl PartialEq for PromotionSearchLimits
impl PartialEq for PromotionSearchLimits
Source§fn eq(&self, other: &PromotionSearchLimits) -> bool
fn eq(&self, other: &PromotionSearchLimits) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PromotionSearchLimits
Auto Trait Implementations§
impl Freeze for PromotionSearchLimits
impl RefUnwindSafe for PromotionSearchLimits
impl Send for PromotionSearchLimits
impl Sync for PromotionSearchLimits
impl Unpin for PromotionSearchLimits
impl UnsafeUnpin for PromotionSearchLimits
impl UnwindSafe for PromotionSearchLimits
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