pub struct Parameter {
pub discipline: Option<u8>,
pub category: Option<u8>,
pub table_version: Option<u8>,
pub number: u8,
pub short_name: Cow<'static, str>,
pub description: Cow<'static, str>,
pub source: ParameterTableSource,
}Expand description
Edition-independent parameter identity.
Fields§
§discipline: Option<u8>§category: Option<u8>§table_version: Option<u8>§number: u8§short_name: Cow<'static, str>§description: Cow<'static, str>§source: ParameterTableSourceImplementations§
Source§impl Parameter
impl Parameter
pub fn new_grib1( table_version: u8, number: u8, short_name: &'static str, description: &'static str, ) -> Parameter
pub fn new_grib2( discipline: u8, category: u8, number: u8, short_name: &'static str, description: &'static str, ) -> Parameter
pub fn new_grib2_with_source<S, D>( discipline: u8, category: u8, number: u8, short_name: S, description: D, source: ParameterTableSource, ) -> Parameter
Trait Implementations§
impl Eq for Parameter
impl StructuralPartialEq for Parameter
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnsafeUnpin for Parameter
impl UnwindSafe for Parameter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more