pub struct AutoDiscovery;Expand description
Auto-discovery and format consolidation engine
Implementations§
Source§impl AutoDiscovery
impl AutoDiscovery
Sourcepub fn discover_training_files<P: AsRef<Path>>(
base_path: P,
recursive: bool,
) -> Result<Vec<TrainingFile>, Box<dyn Error>>
pub fn discover_training_files<P: AsRef<Path>>( base_path: P, recursive: bool, ) -> Result<Vec<TrainingFile>, Box<dyn Error>>
Discover all training data files in a directory
Sourcepub fn consolidate_by_base_name(
files: Vec<TrainingFile>,
) -> HashMap<String, TrainingFile>
pub fn consolidate_by_base_name( files: Vec<TrainingFile>, ) -> HashMap<String, TrainingFile>
Group files by base name and select best format for each
Sourcepub fn get_cleanup_candidates(files: &[TrainingFile]) -> Vec<PathBuf>
pub fn get_cleanup_candidates(files: &[TrainingFile]) -> Vec<PathBuf>
Get list of inferior formats that can be cleaned up
Auto Trait Implementations§
impl Freeze for AutoDiscovery
impl RefUnwindSafe for AutoDiscovery
impl Send for AutoDiscovery
impl Sync for AutoDiscovery
impl Unpin for AutoDiscovery
impl UnwindSafe for AutoDiscovery
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> 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