Enum solnedgang::Location[][src]

pub enum Location {
    EuropeGermanyBerlin,
    EuropeGermanyDuesseldorf,
}
Expand description

A list of well-known places for the library.

Variants

EuropeGermanyBerlin

Berlin, Germany

EuropeGermanyDuesseldorf

Düsseldorf, Germany

Trait Implementations

Create a new instance of the Coordinates class based on a Location.

Examples

Create the coordinates for Berlin, Germany:

use solnedgang::{Coordinates, Location};

let berlin = Coordinates::from(Location::EuropeGermanyBerlin);

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

Performs the conversion.

Performs the conversion.

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.