flapigen 0.11.0

Tool for connecting libraries written in Rust with other languages
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
foreigner_class!(class BLAUtils {
    fn latitude_to_str(lat: Option<f64>, plus_sym: &str, minus_sym: &str)
                       -> String {
        format!(
            "{}",
            Latitude::new_with_symbols(lat, plus_sym.into(), minus_sym.into())
        )
    }
    fn longitude_to_str(lon: Option<f64>, plus_sym: &str, minus_sym: &str)
                        -> String {
        format!(
            "{}",
            Longitude::new_with_symbols(lon, plus_sym.into(), minus_sym.into())
        )
    }
});