Skip to main content

harmos_domain/
answer.rs

1/* ***
2 *
3 * Harmos
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * ***
8 */
9
10/* === Modules === */
11
12/* === Re-Exports === */
13
14/* === Imports === */
15
16// Standard Library Imports
17
18// Third Party Imports
19
20// Local Imports
21
22/* === Constants === */
23
24/* === Macros === */
25
26/* === Type Aliases === */
27
28/* === Structs === */
29
30/* === Enums === */
31
32/* === Traits === */
33
34pub trait Answer {
35    type Ok;
36    type Err;
37}
38
39/* === Implementations === */
40
41impl<T, E> Answer for Result<T, E> {
42    type Ok = T;
43    type Err = E;
44}
45
46/* === Public Functions === */
47
48/* === Private Functions === */
49
50/* === Tests === */