pub struct Finder { /* private fields */ }
Expand description
Finder works anywhere.
Finder use a fine tuned Ray casting algorithm implement geometry-rs which is Rust port of geometry by Josh Baker.
Implementations§
Source§impl Finder
impl Finder
Sourcepub fn get_tz_name(&self, lng: f64, lat: f64) -> &str
pub fn get_tz_name(&self, lng: f64, lat: f64) -> &str
Example:
use tzf_rs::Finder;
let finder = Finder::new();
assert_eq!("Asia/Shanghai", finder.get_tz_name(116.3883, 39.9289));
Sourcepub fn get_tz_names(&self, lng: f64, lat: f64) -> Vec<&str>
pub fn get_tz_names(&self, lng: f64, lat: f64) -> Vec<&str>
use tzf_rs::Finder;
let finder = Finder::new();
println!("{:?}", finder.get_tz_names(116.3883, 39.9289));
Sourcepub fn timezonenames(&self) -> Vec<&str>
pub fn timezonenames(&self) -> Vec<&str>
Example:
use tzf_rs::Finder;
let finder = Finder::new();
println!("{:?}", finder.timezonenames());
Sourcepub fn data_version(&self) -> &str
pub fn data_version(&self) -> &str
Example:
use tzf_rs::Finder;
let finder = Finder::new();
println!("{:?}", finder.data_version());
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Finder
impl RefUnwindSafe for Finder
impl Send for Finder
impl Sync for Finder
impl Unpin for Finder
impl UnwindSafe for Finder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more