pub struct RasterDataBlock<T>where
T: RasterType,{
pub data: RasterData<T>,
pub metadata: RasterMetadata<T>,
pub no_data: T,
}Expand description
A block of raster data with its associated metadata and no-data value.
Fields§
§data: RasterData<T>The raster data array
metadata: RasterMetadata<T>Metadata associated with this block
no_data: TNo-data value for this block
Implementations§
Source§impl<T> RasterDataBlock<T>where
T: RasterType,
Convenience methods for RasterDataBlock.
impl<T> RasterDataBlock<T>where
T: RasterType,
Convenience methods for RasterDataBlock.
Sourcepub fn available_layer_names(&self) -> &[String]
pub fn available_layer_names(&self) -> &[String]
Returns the available layer names for this block.
Sourcepub fn available_time_indices(&self) -> &[DateType]
pub fn available_time_indices(&self) -> &[DateType]
Returns the available time indices for this block.
Trait Implementations§
Source§impl<T> Clone for RasterDataBlock<T>where
T: RasterType + Clone,
impl<T> Clone for RasterDataBlock<T>where
T: RasterType + Clone,
Source§fn clone(&self) -> RasterDataBlock<T>
fn clone(&self) -> RasterDataBlock<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for RasterDataBlock<T>where
T: RasterType + Debug,
impl<T> Debug for RasterDataBlock<T>where
T: RasterType + Debug,
Source§impl<T> PartialEq for RasterDataBlock<T>where
T: RasterType + PartialEq,
impl<T> PartialEq for RasterDataBlock<T>where
T: RasterType + PartialEq,
Source§impl<T> Select<T> for RasterDataBlock<T>
impl<T> Select<T> for RasterDataBlock<T>
Source§fn find_layer_index(&self, name: &str) -> Result<usize, SelectError>
fn find_layer_index(&self, name: &str) -> Result<usize, SelectError>
Find the index of a layer by name.
Source§fn find_time_index(&self, date: &DateType) -> Result<usize, SelectError>
fn find_time_index(&self, date: &DateType) -> Result<usize, SelectError>
Find the index of a time slice by date type.
Source§fn select_layers(
&self,
layer_names: &[&str],
) -> Result<RasterDataBlock<T>, SelectError>
fn select_layers( &self, layer_names: &[&str], ) -> Result<RasterDataBlock<T>, SelectError>
Select multiple layers by name.
Source§fn select_times(
&self,
dates: &[DateType],
) -> Result<RasterDataBlock<T>, SelectError>
fn select_times( &self, dates: &[DateType], ) -> Result<RasterDataBlock<T>, SelectError>
Select multiple time slices by date index.
impl<T> StructuralPartialEq for RasterDataBlock<T>where
T: RasterType,
Auto Trait Implementations§
impl<T> Freeze for RasterDataBlock<T>where
T: Freeze,
impl<T> RefUnwindSafe for RasterDataBlock<T>where
T: RefUnwindSafe,
impl<T> Send for RasterDataBlock<T>
impl<T> Sync for RasterDataBlock<T>
impl<T> Unpin for RasterDataBlock<T>where
T: Unpin,
impl<T> UnwindSafe for RasterDataBlock<T>where
T: UnwindSafe + RefUnwindSafe,
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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