1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use std::path::PathBuf; use crate::formula::Formula; pub struct PathFormula; impl PathFormula { pub fn new() -> Self { Self {} } } impl From<PathFormula> for Formula<PathBuf> { fn from(_value: PathFormula) -> Self { Formula::new("Failed to parse [opt] as a path") } }