[−][src]Crate zone_detect
Safe wrapper around part of the unsafe sys module.
Example:
let path = std::path::Path::new("/path/to/timezone21.bin"); let database = zone_detect::Database::open(path) .expect("failed to open database"); let zones = database.lookup(&zone_detect::Location { latitude: 35.0715, longitude: -82.5216, }).expect("database lookup failed");
Modules
sys | Unsafe wrapper for the ZoneDetect C library generated by bindgen. |
Structs
Database | Zone database. |
Location | Latitude and longitude. |
Zone | Zone retrieved from the database. |
Enums
Error | Zone database errors. |