Struct geodesy::ParsedParameters
source · pub struct ParsedParameters {Show 13 fields
pub name: String,
pub boolean: BTreeSet<&'static str>,
pub natural: BTreeMap<&'static str, usize>,
pub integer: BTreeMap<&'static str, i64>,
pub real: BTreeMap<&'static str, f64>,
pub series: BTreeMap<&'static str, Vec<f64>>,
pub text: BTreeMap<&'static str, String>,
pub texts: BTreeMap<&'static str, Vec<String>>,
pub uuid: BTreeMap<&'static str, Uuid>,
pub fourier_coefficients: BTreeMap<&'static str, FourierCoefficients>,
pub ignored: Vec<String>,
pub given: BTreeMap<String, String>,
pub grids: Vec<Arc<dyn Grid>>,
}
Expand description
The InnerOp specific representation of the operator arguments.
The InnerOp-constructor asks
ParsedParameters::new(...)
to interpret the
RawParameters-representation
according to the GAMUT
of the InnerOp
(i.e. the args it is willing
to interpret and use).
Also, the InnerOp
constructor is free to pre-compute
derived parameters and store them in the ParsedParameters
struct, ready for use at run time.
Fields§
§name: String
§boolean: BTreeSet<&'static str>
§natural: BTreeMap<&'static str, usize>
§integer: BTreeMap<&'static str, i64>
§real: BTreeMap<&'static str, f64>
§series: BTreeMap<&'static str, Vec<f64>>
§text: BTreeMap<&'static str, String>
§texts: BTreeMap<&'static str, Vec<String>>
§uuid: BTreeMap<&'static str, Uuid>
§fourier_coefficients: BTreeMap<&'static str, FourierCoefficients>
§ignored: Vec<String>
§given: BTreeMap<String, String>
§grids: Vec<Arc<dyn Grid>>
Implementations§
source§impl ParsedParameters
impl ParsedParameters
pub fn boolean(&self, key: &str) -> bool
pub fn natural(&self, key: &str) -> Result<usize, Error>
pub fn integer(&self, key: &str) -> Result<i64, Error>
pub fn real(&self, key: &str) -> Result<f64, Error>
pub fn series(&self, key: &str) -> Result<&[f64], Error>
pub fn series_as_i64(&self, key: &str) -> Result<Vec<i64>, Error>
pub fn series_as_usize(&self, key: &str) -> Result<Vec<usize>, Error>
pub fn text(&self, key: &str) -> Result<String, Error>
pub fn texts(&self, key: &str) -> Result<&Vec<String>, Error>
pub fn uuid(&self, key: &str) -> Result<Uuid, Error>
pub fn fourier_coefficients( &self, key: &str ) -> Result<FourierCoefficients, Error>
pub fn ignored(&self) -> Vec<String>
pub fn ellps(&self, index: usize) -> Ellipsoid
pub fn k(&self, index: usize) -> f64
pub fn x(&self, index: usize) -> f64
pub fn y(&self, index: usize) -> f64
pub fn lat(&self, index: usize) -> f64
pub fn lon(&self, index: usize) -> f64
source§impl ParsedParameters
impl ParsedParameters
pub fn new( parameters: &RawParameters, gamut: &[OpParameter] ) -> Result<ParsedParameters, Error>
Trait Implementations§
source§impl Clone for ParsedParameters
impl Clone for ParsedParameters
source§fn clone(&self) -> ParsedParameters
fn clone(&self) -> ParsedParameters
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ParsedParameters
impl !RefUnwindSafe for ParsedParameters
impl Send for ParsedParameters
impl Sync for ParsedParameters
impl Unpin for ParsedParameters
impl !UnwindSafe for ParsedParameters
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more