1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
pub !
// ═══════════════════════════════════════════════════════════════════════════
// Typed errors for the unified REML/LAML evaluator.
//
// The evaluator and its helpers historically returned `Result<_, String>`.
// Internally we now build typed errors at the leaves and convert at the
// boundary via `From<RemlError> for String`, which is byte-equivalent to
// the previous `format!(...)` strings so external callers continue to see
// the same diagnostic text.
// ═══════════════════════════════════════════════════════════════════════════
/// Typed failure categories raised by the unified REML/LAML evaluator and
/// its outer-Hessian / penalty-root helpers.
///
/// Each variant carries a pre-formatted `reason` string so that the
/// `Display` impl is byte-equivalent to the original `format!(...)` text the
/// module emitted before the typed-error migration. External signatures
/// remain `Result<_, String>`; the boundary conversion goes through
/// `From<RemlError> for String`.
crateimpl_reason_error_boilerplate!