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
//! Error type for the `slokit` crate.
/// Errors produced by the core library.
///
/// I/O and CLI-level concerns are handled by the binary (via `anyhow`); this
/// enum stays focused on domain and parsing failures so library consumers get
/// precise, matchable variants.
///
/// The enum is `#[non_exhaustive]`: new failure domains have been added before
/// (the `Plugin` variant arrived with the SLI plugin system) and more may
/// follow, so matches need a wildcard arm.
/// Convenience alias used throughout the crate.
pub type Result<T> = Result;