pub struct DataSourceBuilder {
pub source: PathBuf,
pub bands: Vec<usize>,
pub layer_names: Vec<String>,
pub date_indices: Vec<DateType>,
}Expand description
Builder for creating a DataSource.
Fields§
§source: PathBufPath to the source file.
bands: Vec<usize>Band indices to use.
layer_names: Vec<String>Names of the layers.
date_indices: Vec<DateType>Date indices for temporal data.
Implementations§
Source§impl DataSourceBuilder
impl DataSourceBuilder
Sourcepub fn band_dimension(self, dimension: Dimension) -> Self
pub fn band_dimension(self, dimension: Dimension) -> Self
Sets the band dimension (layer or time).
Sourcepub fn build(self) -> DataSource
pub fn build(self) -> DataSource
Builds the DataSource.
fn get_n_bands(source: &PathBuf) -> usize
Auto Trait Implementations§
impl Freeze for DataSourceBuilder
impl RefUnwindSafe for DataSourceBuilder
impl Send for DataSourceBuilder
impl Sync for DataSourceBuilder
impl Unpin for DataSourceBuilder
impl UnwindSafe for DataSourceBuilder
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
§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