macro_rules! gnss {
($desc: expr) => { ... };
}Expand description
Creates a crate::prelude::Constellation from given (case insensitive) string description. Example:
use std::str::FromStr;
use gnss_rs::prelude::*;
use gnss_rs::gnss; // macro
assert_eq!(gnss!("gps"), Constellation::GPS);
assert_eq!(gnss!("Gal"), Constellation::Galileo);
assert_eq!(gnss!("GALILEO"), Constellation::Galileo);