pub enum CoxError {
InvalidDimensions {
message: String,
},
OptimizationFailed {
message: String,
},
ModelNotFitted,
InvalidParameter {
parameter: String,
value: String,
},
NumericalError {
message: String,
},
InvalidSurvivalData {
message: String,
},
}Variants§
InvalidDimensions
OptimizationFailed
ModelNotFitted
InvalidParameter
NumericalError
InvalidSurvivalData
Implementations§
Source§impl CoxError
impl CoxError
pub fn invalid_dimensions(message: impl Into<String>) -> Self
pub fn optimization_failed(message: impl Into<String>) -> Self
pub fn invalid_parameter( parameter: impl Into<String>, value: impl Into<String>, ) -> Self
pub fn numerical_error(message: impl Into<String>) -> Self
pub fn invalid_survival_data(message: impl Into<String>) -> Self
Trait Implementations§
Source§impl Error for CoxError
impl Error for CoxError
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()
Auto Trait Implementations§
impl Freeze for CoxError
impl RefUnwindSafe for CoxError
impl Send for CoxError
impl Sync for CoxError
impl Unpin for CoxError
impl UnwindSafe for CoxError
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