use std::path::{Path, PathBuf};
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Outcome {
Written(PathBuf),
Preserved(PathBuf),
}
impl Outcome {
pub fn path(&self) -> &Path {
match self {
Self::Written(path) | Self::Preserved(path) => path,
}
}
pub fn is_preserved(&self) -> bool {
matches!(self, Self::Preserved(_))
}
}
pub struct Report {
pub outcomes: Vec<Outcome>,
pub unwired: Vec<String>,
}