pub trait TypeExt { // Required methods fn as_path(&self) -> Result<&Path>; fn as_path_mut(&mut self) -> Result<&mut Path>; }