utils_results/macros/results.rs
1/*
2 .. + results.rs + ..
3 Copyright 2021 Hwakyeom Kim(=just-do-halee)
4*/
5
6/// this will convert any result type to Master Result.
7///```ignore
8/// resultcast!(handle.join().unwrap())?;
9///```
10/// result type cast macro
11#[macro_export]
12macro_rules! resultcast {
13 ($result:expr) => {
14 $crate::private::Result::<_>::Ok(errcast!($result))
15 };
16}