Expand description
Named OA filesystem locations and the oa::Path value type.
§oa::Path
A thin newtype over std::path::PathBuf that:
- implements
Deref<Target = std::path::Path>so it works everywhere a&std::path::Pathis expected (allstd::fscalls,Filesystemmethods) - carries the named OA location methods (
asset,var,data,home,temp) directly, so call sites readoa::Path::asset_rel("audio/x.wav") - exposes
.join(),.parent(), etc. returningoa::Path - implements common
From/Into/AsRef/Display
§Resolution order
asset→OA_ASSETenv var → nearest ancestorsdk/asset→./assetvar→OA_VARenv var → nearest ancestorvar→./vardata→OA_DATAenv var →<var>/datahome→HOME(Unix) /USERPROFILE(Windows)temp→TMPDIR/TEMP/TMP→/tmp(Unix) / current dir
Structs§
- Path
- An owned OA path value.