pub struct LocalParameterTable { /* private fields */ }Expand description
Owned GRIB2 local parameter table with file-authoring helpers.
Implementations§
Source§impl LocalParameterTable
impl LocalParameterTable
pub fn new() -> LocalParameterTable
pub fn from_entries( entries: impl IntoIterator<Item = OwnedLocalParameterEntry>, ) -> Result<LocalParameterTable, Error>
pub fn from_csv_str(input: &str) -> Result<LocalParameterTable, Error>
pub fn from_csv_path( path: impl AsRef<Path>, ) -> Result<LocalParameterTable, Error>
pub fn push(&mut self, entry: OwnedLocalParameterEntry) -> Result<(), Error>
pub fn entries(&self) -> Vec<LocalParameterEntry<'_>>
pub fn to_csv_string(&self) -> String
Trait Implementations§
Source§impl Clone for LocalParameterTable
impl Clone for LocalParameterTable
Source§fn clone(&self) -> LocalParameterTable
fn clone(&self) -> LocalParameterTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocalParameterTable
impl Debug for LocalParameterTable
Source§impl Default for LocalParameterTable
impl Default for LocalParameterTable
Source§fn default() -> LocalParameterTable
fn default() -> LocalParameterTable
Returns the “default value” for a type. Read more
impl Eq for LocalParameterTable
Source§impl PartialEq for LocalParameterTable
impl PartialEq for LocalParameterTable
Source§fn eq(&self, other: &LocalParameterTable) -> bool
fn eq(&self, other: &LocalParameterTable) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LocalParameterTable
Auto Trait Implementations§
impl Freeze for LocalParameterTable
impl RefUnwindSafe for LocalParameterTable
impl Send for LocalParameterTable
impl Sync for LocalParameterTable
impl Unpin for LocalParameterTable
impl UnsafeUnpin for LocalParameterTable
impl UnwindSafe for LocalParameterTable
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