pub enum SurvivalLocationScaleError {
DimensionMismatch {
reason: String,
},
InvalidConfiguration {
reason: String,
},
ConstraintViolation {
reason: String,
},
NumericalFailure {
reason: String,
},
InternalInvariant {
reason: String,
},
}Expand description
Typed errors emitted by the survival location-scale family pipeline.
Each variant carries a pre-formatted reason string so Display is
byte-equivalent to the original format!(...) outputs the module used
before the typed-error migration. The category split lets callers
pattern-match on the failure kind without dragging the string apart.
Variants§
DimensionMismatch
Row/column/length disagreement between vectors, matrices, designs, penalty blocks, or coefficient/parameter dimensions.
InvalidConfiguration
Spec-level validation: tolerances, iteration caps, knot-vector lengths, time intervals, weight values, or missing/contradictory configuration fields the user supplied.
ConstraintViolation
Structural constraint violated at runtime: monotonicity guards, lower bounds on coefficients, nonnegativity, derivative-basis sign, or values outside an allowed semantic range.
NumericalFailure
A numerical step produced a non-finite or out-of-domain value downstream code cannot consume (NaN products, invalid pdf, survival probability out of (0,1], etc.).
InternalInvariant
Internal invariant about pipeline state (empty block markers, unexpected ranks, schema/state inconsistencies surfaced from inner helpers).
Trait Implementations§
Source§impl Clone for SurvivalLocationScaleError
impl Clone for SurvivalLocationScaleError
Source§fn clone(&self) -> SurvivalLocationScaleError
fn clone(&self) -> SurvivalLocationScaleError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SurvivalLocationScaleError
impl Debug for SurvivalLocationScaleError
Source§impl Display for SurvivalLocationScaleError
impl Display for SurvivalLocationScaleError
Source§impl Error for SurvivalLocationScaleError
impl Error for SurvivalLocationScaleError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<BlockCountMismatch> for SurvivalLocationScaleError
impl From<BlockCountMismatch> for SurvivalLocationScaleError
Source§fn from(err: BlockCountMismatch) -> SurvivalLocationScaleError
fn from(err: BlockCountMismatch) -> SurvivalLocationScaleError
Source§impl From<String> for SurvivalLocationScaleError
impl From<String> for SurvivalLocationScaleError
Source§fn from(reason: String) -> SurvivalLocationScaleError
fn from(reason: String) -> SurvivalLocationScaleError
Inbound conversion from the many Result<_, String> helpers this
module still calls into. The text is preserved verbatim; we only
pick a generic category so external messages flow through ?
without per-callsite .map_err.
Source§impl From<SurvivalLocationScaleError> for String
impl From<SurvivalLocationScaleError> for String
Source§fn from(err: SurvivalLocationScaleError) -> String
fn from(err: SurvivalLocationScaleError) -> String
Auto Trait Implementations§
impl Freeze for SurvivalLocationScaleError
impl RefUnwindSafe for SurvivalLocationScaleError
impl Send for SurvivalLocationScaleError
impl Sync for SurvivalLocationScaleError
impl Unpin for SurvivalLocationScaleError
impl UnsafeUnpin for SurvivalLocationScaleError
impl UnwindSafe for SurvivalLocationScaleError
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.