finql 0.12.0

A quantitative finance toolbox
Documentation
1
2
3
4
5
6
7
8
9
///! Useful helper functions that do not belong to any other module

/// Returns true if some optional String argument is not None and  the value equals a given str reference
pub fn some_equal(opt: &Option<String>, s: &str) -> bool {
    match opt {
        None => false,
        Some(opt_s) => opt_s == s,
    }
}