pub struct MultiFileLoaderConfig {
pub base_file_pattern: String,
pub filename_template: String,
pub band_scheme: BandScheme,
pub reference_band: String,
pub extensions: Vec<String>,
pub bit_depth: u8,
}Expand description
Configuration for a multifile image loader
Fields§
§base_file_pattern: StringRegex pattern to match base files (reference files) with named capture groups
filename_template: StringTemplate for generating filenames using captured groups and band identifiers
band_scheme: BandSchemeBand naming scheme
reference_band: StringReference band identifier (the band used to find base files)
extensions: Vec<String>Supported file extensions
bit_depth: u8Bit depth of the sensor
Implementations§
Source§impl MultiFileLoaderConfig
impl MultiFileLoaderConfig
Sourcepub fn new(
base_file_pattern: String,
filename_template: String,
band_scheme: BandScheme,
reference_band: String,
extensions: Vec<String>,
bit_depth: u8,
) -> Self
pub fn new( base_file_pattern: String, filename_template: String, band_scheme: BandScheme, reference_band: String, extensions: Vec<String>, bit_depth: u8, ) -> Self
Create a new multifile loader configuration
Sourcepub fn from_config(config: &HashMap<String, String>) -> Result<Self>
pub fn from_config(config: &HashMap<String, String>) -> Result<Self>
Create configuration from a HashMap (typically from TOML loader_config)
Sourcepub fn band_count(&self) -> usize
pub fn band_count(&self) -> usize
Get the expected number of bands
Sourcepub fn band_identifiers(&self) -> Vec<String>
pub fn band_identifiers(&self) -> Vec<String>
Get the list of band identifiers
Trait Implementations§
Source§impl Clone for MultiFileLoaderConfig
impl Clone for MultiFileLoaderConfig
Source§fn clone(&self) -> MultiFileLoaderConfig
fn clone(&self) -> MultiFileLoaderConfig
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 moreAuto Trait Implementations§
impl Freeze for MultiFileLoaderConfig
impl RefUnwindSafe for MultiFileLoaderConfig
impl Send for MultiFileLoaderConfig
impl Sync for MultiFileLoaderConfig
impl Unpin for MultiFileLoaderConfig
impl UnsafeUnpin for MultiFileLoaderConfig
impl UnwindSafe for MultiFileLoaderConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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