pub struct Path_type(/* private fields */);
Expand description
A borrowed path type.
The implementation is very similar to the standard library’s std::path::Path
.
However, this implementation is more lightweight and allows for std-less usage.
Implementations§
Source§impl Path_type
impl Path_type
pub const Root: &'static Path_type = _
pub const Empty: &'static Path_type = _
Sourcepub const System: &'static Path_type = _
pub const System: &'static Path_type = _
Contains the OS core, including the kernel, init system, and critical drivers. Prevents modification by regular users.
Sourcepub const Devices: &'static Path_type = _
pub const Devices: &'static Path_type = _
Stores system-wide settings in a structured format (e.g., JSON, TOML).
Sourcepub const Configuration: &'static Path_type = _
pub const Configuration: &'static Path_type = _
Hardware devices, symlinks for human-friendly names.
Contains the shared configurations between applications.
Shared data between binaries.
Sourcepub const Binaries: &'static Path_type = _
pub const Binaries: &'static Path_type = _
Contains the system’s binaries, including the shell and other executables.
Sourcepub const Users: &'static Path_type = _
pub const Users: &'static Path_type = _
Contains the user’s data, including documents, downloads, and other files.
Sourcepub const Temporary: &'static Path_type = _
pub const Temporary: &'static Path_type = _
Contains temporary files, including logs and caches.
Sourcepub const Logs: &'static Path_type = _
pub const Logs: &'static Path_type = _
Contains logs, including system logs and application logs.
Sourcepub const fn From_str(Path: &str) -> &Path_type
pub const fn From_str(Path: &str) -> &Path_type
§Safety
The caller must ensure that the string is a valid path string.
Sourcepub fn New<S: AsRef<str> + ?Sized>(Path: &S) -> &Path_type
pub fn New<S: AsRef<str> + ?Sized>(Path: &S) -> &Path_type
§Safety
The caller must ensure that the string is a valid path string.