pub struct LoopRoundLimit(/* private fields */);Expand description
A count of rounds an integrator’s loop is allowed.
Implementations§
Source§impl LoopRoundLimit
impl LoopRoundLimit
Sourcepub fn new(value: u32) -> Result<Self, DomainError>
pub fn new(value: u32) -> Result<Self, DomainError>
Construct a validated count.
Sourcepub const fn default_without_progress() -> Self
pub const fn default_without_progress() -> Self
How many rounds without progress are tolerated by default.
pub const fn value(self) -> u32
Trait Implementations§
Source§impl Clone for LoopRoundLimit
impl Clone for LoopRoundLimit
impl Copy for LoopRoundLimit
Source§impl Debug for LoopRoundLimit
impl Debug for LoopRoundLimit
Source§impl<'de> Deserialize<'de> for LoopRoundLimit
impl<'de> Deserialize<'de> for LoopRoundLimit
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for LoopRoundLimit
impl Display for LoopRoundLimit
impl Eq for LoopRoundLimit
Source§impl Hash for LoopRoundLimit
impl Hash for LoopRoundLimit
Source§impl Ord for LoopRoundLimit
impl Ord for LoopRoundLimit
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for LoopRoundLimit
impl PartialEq for LoopRoundLimit
Source§impl PartialOrd for LoopRoundLimit
impl PartialOrd for LoopRoundLimit
Source§impl Serialize for LoopRoundLimit
impl Serialize for LoopRoundLimit
impl StructuralPartialEq for LoopRoundLimit
Auto Trait Implementations§
impl Freeze for LoopRoundLimit
impl RefUnwindSafe for LoopRoundLimit
impl Send for LoopRoundLimit
impl Sync for LoopRoundLimit
impl Unpin for LoopRoundLimit
impl UnsafeUnpin for LoopRoundLimit
impl UnwindSafe for LoopRoundLimit
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