pub enum ScalingError {
InvalidSuccessProbability(f64),
InvalidTargetProbability(f64),
InvalidStepCount(u64),
VotingCannotConverge {
p: f64,
},
CostEstimationFailed(String),
NumericalOverflow(String),
}Expand description
Errors related to scaling law calculations
Variants§
InvalidSuccessProbability(f64)
Invalid success probability value.
InvalidTargetProbability(f64)
Invalid target probability value.
InvalidStepCount(u64)
Invalid step count.
VotingCannotConverge
Voting cannot converge at this success rate.
CostEstimationFailed(String)
Cost estimation failed.
NumericalOverflow(String)
Numerical overflow in calculation.
Trait Implementations§
Source§impl Debug for ScalingError
impl Debug for ScalingError
Source§impl Display for ScalingError
impl Display for ScalingError
Source§impl Error for ScalingError
impl Error for ScalingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ScalingError> for MdapError
impl From<ScalingError> for MdapError
Source§fn from(source: ScalingError) -> Self
fn from(source: ScalingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ScalingError
impl RefUnwindSafe for ScalingError
impl Send for ScalingError
impl Sync for ScalingError
impl Unpin for ScalingError
impl UnsafeUnpin for ScalingError
impl UnwindSafe for ScalingError
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