Struct tzf_rs::DefaultFinder
source · pub struct DefaultFinder { /* private fields */ }
Expand description
It’s most recommend to use, combine both Finder and FuzzyFinder.
Implementations
sourceimpl DefaultFinder
impl DefaultFinder
sourcepub fn new() -> DefaultFinder
pub fn new() -> DefaultFinder
use tzf_rs::DefaultFinder;
let finder = DefaultFinder::new();
sourcepub fn get_tz_name(&self, lng: f64, lat: f64) -> &str
pub fn get_tz_name(&self, lng: f64, lat: f64) -> &str
use tzf_rs::DefaultFinder;
let finder = DefaultFinder::new();
assert_eq!("Asia/Shanghai", finder.get_tz_name(116.3883, 39.9289));
Auto Trait Implementations
impl RefUnwindSafe for DefaultFinder
impl Send for DefaultFinder
impl Sync for DefaultFinder
impl Unpin for DefaultFinder
impl UnwindSafe for DefaultFinder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more