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
use Error;
/// Unified roplat error enum.
///
/// This type aggregates common error sources across modules. For finer-grained
/// errors, keep module-specific context and convert via `Into<RoplatError>`.
/// Public roplat result alias.
///
/// # Example
/// ```rust
/// use roplat::{RoplatError, RoplatResult};
///
/// fn parse_positive(v: i32) -> RoplatResult<i32> {
/// if v > 0 { Ok(v) } else { Err(RoplatError::Other("not positive".into())) }
/// }
///
/// assert!(parse_positive(1).is_ok());
/// assert!(parse_positive(0).is_err());
/// ```
pub type RoplatResult<T> = ;