pub enum ProbError {
Shape {
message: &'static str,
},
InvalidPrior {
message: &'static str,
},
Inference {
message: &'static str,
},
Numerical {
message: String,
},
MissingDiagnostics {
message: String,
},
}Expand description
Errors from prior construction, posterior storage, or inference backends.
Variants§
Shape
Shape / dimension mismatch.
InvalidPrior
Invalid prior or configuration.
Inference
Inference failed to converge or produce a usable approximation.
Numerical
Numerical failure (singular Hessian, separation, etc.).
MissingDiagnostics
Missing required diagnostics for a reported posterior.
Trait Implementations§
impl Eq for ProbError
Source§impl Error for ProbError
impl Error for ProbError
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<TransportError> for ProbError
impl From<TransportError> for ProbError
Source§fn from(e: TransportError) -> Self
fn from(e: TransportError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for ProbError
Auto Trait Implementations§
impl Freeze for ProbError
impl RefUnwindSafe for ProbError
impl Send for ProbError
impl Sync for ProbError
impl Unpin for ProbError
impl UnsafeUnpin for ProbError
impl UnwindSafe for ProbError
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