use crate::prelude::*;
use std::path::{Path, PathBuf};
#[derive(Debug, Serialize, Deserialize)]
pub struct ImageDataSet(PathBuf);
impl ImageDataSet {
pub fn from_dir<Path: AsRef<std::path::Path>>(path: Path) -> Self {
let path = path.as_ref().to_path_buf();
ImageDataSet(path)
}
pub fn set_path(&mut self, path: PathBuf) {
self.0 = path;
}
pub fn path(&self) -> &Path {
&self.0
}
}