pub struct GribFileBuilder<'a> { /* private fields */ }Expand description
Builder for opening GRIB data with explicit scanning, allocation, and center-defined metadata policies.
Implementations§
Source§impl<'a> GribFileBuilder<'a>
impl<'a> GribFileBuilder<'a>
Sourcepub fn strict(self, strict: bool) -> Self
pub fn strict(self, strict: bool) -> Self
Controls whether malformed GRIB candidates abort scanning.
Strict mode is enabled by default. Tolerant mode skips candidates with invalid framing or unsupported edition numbers, while still reporting semantic errors in well-framed GRIB1/GRIB2 messages.
Sourcepub fn max_decoded_points(self, max: usize) -> Self
pub fn max_decoded_points(self, max: usize) -> Self
Sets the maximum number of points decoded into a field buffer.
Sourcepub fn without_decoded_point_limit(self) -> Self
pub fn without_decoded_point_limit(self) -> Self
Disables the decoded-field point limit.
Sourcepub fn max_axis_points(self, max: usize) -> Self
pub fn max_axis_points(self, max: usize) -> Self
Sets the maximum number of coordinates allocated by an axis helper.
Sourcepub fn without_axis_point_limit(self) -> Self
pub fn without_axis_point_limit(self) -> Self
Disables the coordinate-axis point limit.
Sourcepub fn without_limits(self) -> Self
pub fn without_limits(self) -> Self
Disables both decoded-field and coordinate-axis limits.
Sourcepub fn local_parameters(self, entries: &'a [LocalParameterEntry<'a>]) -> Self
pub fn local_parameters(self, entries: &'a [LocalParameterEntry<'a>]) -> Self
Supplies GRIB2 local parameter definitions used during indexing.
Sourcepub fn grib1_predefined_bitmaps(
self,
bitmaps: &'a [PredefinedBitmap<'a>],
) -> Self
pub fn grib1_predefined_bitmaps( self, bitmaps: &'a [PredefinedBitmap<'a>], ) -> Self
Supplies center-defined GRIB1 predefined bitmaps.
Sourcepub fn open<P: AsRef<Path>>(self, path: P) -> Result<GribFile>
pub fn open<P: AsRef<Path>>(self, path: P) -> Result<GribFile>
Opens a file through a read-only memory mapping.
Sourcepub fn from_bytes(self, data: Vec<u8>) -> Result<GribFile>
pub fn from_bytes(self, data: Vec<u8>) -> Result<GribFile>
Opens an owned in-memory GRIB buffer without copying it.
Sourcepub fn from_reader<R: Read>(self, reader: R) -> Result<GribFile>
pub fn from_reader<R: Read>(self, reader: R) -> Result<GribFile>
Reads GRIB data from an arbitrary byte stream.
Trait Implementations§
Source§impl<'a> Clone for GribFileBuilder<'a>
impl<'a> Clone for GribFileBuilder<'a>
impl<'a> Copy for GribFileBuilder<'a>
Source§impl<'a> Debug for GribFileBuilder<'a>
impl<'a> Debug for GribFileBuilder<'a>
Auto Trait Implementations§
impl<'a> Forget for GribFileBuilder<'a>
impl<'a> Freeze for GribFileBuilder<'a>
impl<'a> RefUnwindSafe for GribFileBuilder<'a>
impl<'a> Send for GribFileBuilder<'a>
impl<'a> Sync for GribFileBuilder<'a>
impl<'a> Unpin for GribFileBuilder<'a>
impl<'a> UnsafeUnpin for GribFileBuilder<'a>
impl<'a> UnwindSafe for GribFileBuilder<'a>
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
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> ⓘ
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> ⓘ
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