1 2 3 4 5 6 7 8 9 10 11 12 13 14
use std::path::{Path, PathBuf}; #[derive(Debug, Clone)] pub(crate) struct HostPath(PathBuf); impl HostPath { pub(crate) fn new(path: impl AsRef<Path>) -> Self { Self(path.as_ref().to_path_buf()) } pub(crate) fn as_path(&self) -> &Path { &self.0 } }