Struct sounding_base::StationInfo[][src]

pub struct StationInfo { /* fields omitted */ }

Station information including location data and identification number.

Methods

impl StationInfo
[src]

Create a new StationInfo object.

Arguments

station_num: The USAF station identifier, or None.

location: The latitude and longitude as a tuple, or None.

elevation: The elevation of the station in meters.

Examples

 
use sounding_base::StationInfo;
use optional::{some, none};
 
let stn = StationInfo::new_with_values(12345, (45.2,-113.5), 2000.0);
 
// Note that lat-lon is an `Option` and not an `Optioned`
let stn = StationInfo::new_with_values(some(12345), None, none());

Create a new object with default values.

Examples

 
use sounding_base::StationInfo;
use optional::{some, none};
 
assert_eq!(StationInfo::new().station_num(), none());
assert_eq!(StationInfo::new().location(), None);
assert_eq!(StationInfo::new().elevation(), none());
 

Builder method to add a station number.

Builder method to add a location.

Builder method to add elevation.

station number, USAF number, eg 727730

Latitude and longitude.

Elevation in meters, this may be in model terrain, not necessarily the same as the real world.

Trait Implementations

impl Debug for StationInfo
[src]

Formats the value using the given formatter. Read more

impl Clone for StationInfo
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for StationInfo
[src]

impl PartialEq for StationInfo
[src]

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

This method tests for !=.

impl Default for StationInfo
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for StationInfo

impl Sync for StationInfo