pub enum GRIB2ReaderInput<T: Reader> {
Reader(T),
SectionChunks(Vec<BufferReader>),
}Expand description
GRIB2 Reader inputs
Variants§
Reader(T)
A single input reader (completely unparsed)
SectionChunks(Vec<BufferReader>)
A list of input readers, parsed into section chunks
Trait Implementations§
Source§impl<T: Reader> From<T> for GRIB2ReaderInput<T>
impl<T: Reader> From<T> for GRIB2ReaderInput<T>
Source§impl<T: Reader> From<Vec<BufferReader>> for GRIB2ReaderInput<T>
impl<T: Reader> From<Vec<BufferReader>> for GRIB2ReaderInput<T>
Source§fn from(readers: Vec<BufferReader>) -> Self
fn from(readers: Vec<BufferReader>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for GRIB2ReaderInput<T>where
T: Freeze,
impl<T> !RefUnwindSafe for GRIB2ReaderInput<T>
impl<T> Send for GRIB2ReaderInput<T>where
T: Send,
impl<T> !Sync for GRIB2ReaderInput<T>
impl<T> Unpin for GRIB2ReaderInput<T>where
T: Unpin,
impl<T> UnwindSafe for GRIB2ReaderInput<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> 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