Enum darksky::Unit [] [src]

pub enum Unit {
    Auto,
    Ca,
    Si,
    Uk2,
    Us,
}

The type of units that the API should send back. us is the default value, and does not need to be specified in that case.

The values are explained under Options and then units=[setting] in the documentation.

Used in conjunction with the Options::unit method, which is a builder for an argument of get_forecast_with_options.

Variants

Automatically select units based on geographic location.

Same as Si, except that wind_speed is in kilometers per hour.

Imperial units (the default).

Same as Si, except that nearest_storm_distance and visibility are in miles and wind_speed is in miles per hour.

SI units.

Trait Implementations

impl Copy for Unit
[src]

impl Clone for Unit
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Unit
[src]

[src]

Formats the value using the given formatter.

impl Eq for Unit
[src]

impl Hash for Unit
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for Unit
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl PartialOrd for Unit
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Unit
[src]

[src]

This method returns an Ordering between self and other. Read more

[src]

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the maximum of two values. Read more

[src]

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the minimum of two values. Read more