libfct4 0.1.2

Implementation of FCT Version 4 (Devised by Janick Eicher) in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// TODO: Add custom error type to replace the macro used here

// a macro that tries to unwrap a Result and print an error message if it fails
macro_rules! unwrap_or_return_error {
    ($e:expr, $m:expr) => (match $e {
        Ok(v) => v,
        Err(_) => {
            println!("{}", $m);
            return Err($m);
        }
    })
}

pub(crate) use unwrap_or_return_error;