Struct sounding_base::StationInfo
[−]
[src]
pub struct StationInfo { /* fields omitted */ }
Station information including location data and identification number.
Methods
impl StationInfo
[src]
pub fn new_with_values<T, U, V>(
station_num: T,
location: U,
elevation: V
) -> Self where
T: Into<Option<i32>>,
U: Into<Option<(f64, f64)>>,
V: Into<Option<f64>>,
[src]
station_num: T,
location: U,
elevation: V
) -> Self where
T: Into<Option<i32>>,
U: Into<Option<(f64, f64)>>,
V: Into<Option<f64>>,
Create a new StationInfo
object.
pub fn new() -> Self
[src]
Create a new object with default values.
pub fn with_station<T>(self, number: T) -> Self where
Option<i32>: From<T>,
[src]
Option<i32>: From<T>,
Builder method to add a station number.
pub fn with_lat_lon<T>(self, coords: T) -> Self where
Option<(f64, f64)>: From<T>,
[src]
Option<(f64, f64)>: From<T>,
Builder method to add a location.
pub fn with_elevation<T>(self, elev: T) -> Self where
Option<f64>: From<T>,
[src]
Option<f64>: From<T>,
Builder method to add elevation.
pub fn station_num(&self) -> Option<i32>
[src]
station number, USAF number, eg 727730
pub fn location(&self) -> Option<(f64, f64)>
[src]
Latitude and longitude.
pub fn elevation(&self) -> Option<f64>
[src]
Elevation in meters, this may be in model terrain, not necessarily the same as the real world.
Trait Implementations
impl Debug for StationInfo
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for StationInfo
[src]
fn clone(&self) -> StationInfo
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for StationInfo
[src]
impl PartialEq for StationInfo
[src]
fn eq(&self, __arg_0: &StationInfo) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &StationInfo) -> bool
[src]
This method tests for !=
.
impl Default for StationInfo
[src]
fn default() -> StationInfo
[src]
Returns the "default value" for a type. Read more