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

source

pub fn boolean(&self, key: &str) -> bool

source

pub fn natural(&self, key: &str) -> Result<usize, Error>

source

pub fn integer(&self, key: &str) -> Result<i64, Error>

source

pub fn real(&self, key: &str) -> Result<f64, Error>

source

pub fn series(&self, key: &str) -> Result<&[f64], Error>

source

pub fn series_as_i64(&self, key: &str) -> Result<Vec<i64>, Error>

source

pub fn series_as_usize(&self, key: &str) -> Result<Vec<usize>, Error>

source

pub fn text(&self, key: &str) -> Result<String, Error>

source

pub fn texts(&self, key: &str) -> Result<&Vec<String>, Error>

source

pub fn uuid(&self, key: &str) -> Result<Uuid, Error>

source

pub fn fourier_coefficients( &self, key: &str ) -> Result<FourierCoefficients, Error>

source

pub fn ignored(&self) -> Vec<String>

source

pub fn ellps(&self, index: usize) -> Ellipsoid

source

pub fn k(&self, index: usize) -> f64

source

pub fn x(&self, index: usize) -> f64

source

pub fn y(&self, index: usize) -> f64

source

pub fn lat(&self, index: usize) -> f64

source

pub fn lon(&self, index: usize) -> f64

source§

impl ParsedParameters

source

pub fn new( parameters: &RawParameters, gamut: &[OpParameter] ) -> Result<ParsedParameters, Error>

Trait Implementations§

source§

impl Clone for ParsedParameters

source§

fn clone(&self) -> ParsedParameters

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ParsedParameters

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CoordinateMetadata for T
where T: ?Sized,

source§

fn crs_id(&self) -> Option<MdIdentifier>

source§

fn crs(&self) -> Option<Crs>

source§

fn coordinate_epoch(&self) -> Option<DataEpoch>

source§

fn is_valid(&self) -> bool

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.