Struct zellij_utils::consts::ZELLIJ_PROJ_DIR [−][src]
pub struct ZELLIJ_PROJ_DIR { /* fields omitted */ }
Methods from Deref<Target = ProjectDirs>
Returns the project path fragment used to compute the project’s cache/config/data directories.
The value is derived from the ProjectDirs::from
call and is platform-dependent.
Returns the path to the project’s cache directory.
Platform | Value | Example |
---|---|---|
Linux | $XDG_CACHE_HOME /_project_path_ or $HOME /.cache/_project_path_ | /home/alice/.cache/barapp |
macOS | $HOME /Library/Caches/_project_path_ | /Users/Alice/Library/Caches/com.Foo-Corp.Bar-App |
Windows | {FOLDERID_LocalAppData} \_project_path_ \cache | C:\Users\Alice\AppData\Local\Foo Corp\Bar App\cache |
Returns the path to the project’s config directory.
Platform | Value | Example |
---|---|---|
Linux | $XDG_CONFIG_HOME /_project_path_ or $HOME /.config/_project_path_ | /home/alice/.config/barapp |
macOS | $HOME /Library/Application Support/_project_path_ | /Users/Alice/Library/Application Support/com.Foo-Corp.Bar-App |
Windows | {FOLDERID_RoamingAppData} \_project_path_ \config | C:\Users\Alice\AppData\Roaming\Foo Corp\Bar App\config |
Returns the path to the project’s data directory.
Platform | Value | Example |
---|---|---|
Linux | $XDG_DATA_HOME /_project_path_ or $HOME /.local/share/_project_path_ | /home/alice/.local/share/barapp |
macOS | $HOME /Library/Application Support/_project_path_ | /Users/Alice/Library/Application Support/com.Foo-Corp.Bar-App |
Windows | {FOLDERID_RoamingAppData} \_project_path_ \data | C:\Users\Alice\AppData\Roaming\Foo Corp\Bar App\data |
Returns the path to the project’s local data directory.
Platform | Value | Example |
---|---|---|
Linux | $XDG_DATA_HOME /_project_path_ or $HOME /.local/share/_project_path_ | /home/alice/.local/share/barapp |
macOS | $HOME /Library/Application Support/_project_path_ | /Users/Alice/Library/Application Support/com.Foo-Corp.Bar-App |
Windows | {FOLDERID_LocalAppData} \_project_path_ \data | C:\Users\Alice\AppData\Local\Foo Corp\Bar App\data |
Returns the path to the project’s runtime directory.
Platform | Value | Example |
---|---|---|
Linux | $XDG_RUNTIME_DIR /_project_path_ | /run/user/1001/barapp |
macOS | – | – |
Windows | – | – |
Trait Implementations
type Target = ProjectDirs
type Target = ProjectDirs
The resulting type after dereferencing.
Dereferences the value.
Auto Trait Implementations
impl RefUnwindSafe for ZELLIJ_PROJ_DIR
impl Send for ZELLIJ_PROJ_DIR
impl Sync for ZELLIJ_PROJ_DIR
impl Unpin for ZELLIJ_PROJ_DIR
impl UnwindSafe for ZELLIJ_PROJ_DIR