Struct tzf_rs::Finder

source ·
pub struct Finder { /* private fields */ }
Expand description

Finder use a fine tuned Ray casting algorithm implement geometry-rs which is Rust port of geometry by Josh Baker.

Implementations§

from_pb is used when you can customed timezone data, as long as it’s compatible with Proto’s desc.

new is for most general usacase.

Example:

use tzf_rs::Finder;

let finder = Finder::new();

Example:

use tzf_rs::Finder;

let finder = Finder::new();
assert_eq!("Asia/Shanghai", finder.get_tz_name(116.3883, 39.9289));

Example:

use tzf_rs::Finder;

let finder = Finder::new();
println!("{:?}", finder.timezonenames());

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.