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.

PlatformValueExample
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_\cacheC:\Users\Alice\AppData\Local\Foo Corp\Bar App\cache

Returns the path to the project’s config directory.

PlatformValueExample
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_\configC:\Users\Alice\AppData\Roaming\Foo Corp\Bar App\config

Returns the path to the project’s data directory.

PlatformValueExample
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_\dataC:\Users\Alice\AppData\Roaming\Foo Corp\Bar App\data

Returns the path to the project’s local data directory.

PlatformValueExample
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_\dataC:\Users\Alice\AppData\Local\Foo Corp\Bar App\data

Returns the path to the project’s runtime directory.

PlatformValueExample
Linux$XDG_RUNTIME_DIR/_project_path_/run/user/1001/barapp
macOS
Windows

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.