pub struct BlockCountMismatch {
pub family: String,
pub expected: usize,
pub got: usize,
}Expand description
A block-count arity mismatch: a family that needs exactly expected
parameter blocks was handed got of them.
This is the neutral carrier produced by validate_block_count; each
module converts it into its own error type via From<BlockCountMismatch>.
The type itself has descended to gam-problem so lower tiers can route
their error enums through From<BlockCountMismatch> without depending on
gam-models; it is re-exported here unchanged.
A block-count arity mismatch: a family that needs exactly expected
parameter blocks was handed got of them.
This is the neutral carrier produced by validate_block_count; each
module converts it into its own error type via From<BlockCountMismatch>.
Fields§
§family: StringHuman-readable family / term name used as the message prefix.
expected: usizeNumber of parameter blocks the family requires.
got: usizeNumber of parameter blocks that were actually supplied.
Implementations§
Trait Implementations§
Source§impl From<BlockCountMismatch> for GamlssError
impl From<BlockCountMismatch> for GamlssError
Source§fn from(err: BlockCountMismatch) -> GamlssError
fn from(err: BlockCountMismatch) -> GamlssError
Source§impl From<BlockCountMismatch> for SurvivalError
impl From<BlockCountMismatch> for SurvivalError
Source§fn from(err: BlockCountMismatch) -> SurvivalError
fn from(err: BlockCountMismatch) -> SurvivalError
Source§impl From<BlockCountMismatch> for LatentSurvivalError
impl From<BlockCountMismatch> for LatentSurvivalError
Source§fn from(err: BlockCountMismatch) -> LatentSurvivalError
fn from(err: BlockCountMismatch) -> LatentSurvivalError
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<BlockCountMismatch> for TransformationNormalError
impl From<BlockCountMismatch> for TransformationNormalError
Source§fn from(err: BlockCountMismatch) -> TransformationNormalError
fn from(err: BlockCountMismatch) -> TransformationNormalError
Auto Trait Implementations§
impl Freeze for BlockCountMismatch
impl RefUnwindSafe for BlockCountMismatch
impl Send for BlockCountMismatch
impl Sync for BlockCountMismatch
impl Unpin for BlockCountMismatch
impl UnsafeUnpin for BlockCountMismatch
impl UnwindSafe for BlockCountMismatch
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> 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.