valkyrie-errors 0.0.3

Error types for valkyrie language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// #[v::namepath(std::io::Path)]
pub struct ValkyriePath {
    _wrap: std::path::PathBuf,
}

impl ValkyriePath {
    pub fn get_windows_form(&self) -> String {
        self._wrap.to_str().unwrap().to_string()
    }
    pub fn get_url(&self) -> String {
        self._wrap.to_str().unwrap().to_string()
    }
    pub fn get_unix_form(&self) -> String {
        self._wrap.to_str().unwrap().to_string()
    }
}