Skip to main content

GdalRule

Enum GdalRule 

Source
pub enum GdalRule {
Show 16 variants Surface { elements: Vec<String>, }, Height { element: String, metres: u32, }, EntireAtmosphere { element: String, }, MeanSeaLevel { elements: Vec<String>, }, Isobaric { element: String, hpa: u32, }, CloudLayer { element: String, short_name: String, phrases: Vec<String>, }, Template, TemplateAerosol, TemplateEnsemble { discipline: u8, category: u8, number: u8, level_type: u8, level_value: Option<f64>, ensemble: EnsembleIdentity, hours: Option<u32>, statistical: Option<u8>, }, TemplateRank, TemplateMrms, TotalPrecipitation, AccumulationFromStart, LocalParameter { category: u8, number: u8, }, Phrase { element: String, phrases: Vec<String>, }, GeopotentialSurface { elements: Vec<String>, },
}
Available on crate feature encoder only.
Expand description

How a variable’s record is recognised among a GRIB’s bands as GDAL describes them. The semantics are in inspect.rs.

Variants§

§

Surface

Fields

§elements: Vec<String>
§

Height

Fields

§element: String
§metres: u32
§

EntireAtmosphere

Fields

§element: String
§

MeanSeaLevel

Fields

§elements: Vec<String>
§

Isobaric

Fields

§element: String
§hpa: u32
§

CloudLayer

Fields

§element: String
§short_name: String
§phrases: Vec<String>
§

Template

§

TemplateAerosol

§

TemplateEnsemble

An ensemble product under an identity of its own: the parameter and first surface read off the assembled template beside the record’s ensemble identity and, for a template over a time interval, the one interval’s length in hours and its process.

Fields

§discipline: u8
§category: u8
§number: u8
§level_type: u8
§level_value: Option<f64>

None accepts any surface value, a missing one included.

§ensemble: EnsembleIdentity
§hours: Option<u32>

Set for a record over a time interval (templates 4.9, 4.10, 4.12), together with statistical.

§statistical: Option<u8>
§

TemplateRank

§

TemplateMrms

§

TotalPrecipitation

§

AccumulationFromStart

§

LocalParameter

Fields

§category: u8
§number: u8
§

Phrase

Fields

§element: String
§phrases: Vec<String>
§

GeopotentialSurface

Fields

§elements: Vec<String>

Trait Implementations§

Source§

impl Clone for GdalRule

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for GdalRule

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for GdalRule

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for GdalRule

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for GdalRule

Auto Trait Implementations§

§

impl Forget for GdalRule

§

impl Freeze for GdalRule

§

impl Move for GdalRule

§

impl RefUnwindSafe for GdalRule

§

impl Send for GdalRule
where RawVecInner: Send,

§

impl Sync for GdalRule
where RawVecInner: Sync,

§

impl Unpin for GdalRule
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for GdalRule

§

impl UnwindSafe for GdalRule
where RawVecInner: UnwindSafe,

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

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>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.