#[repr(usize)]pub enum SearchPathDirectory {
Show 27 variants
Application = 1,
DemoApplication = 2,
DeveloperApplication = 3,
AdminApplication = 4,
Library = 5,
Developer = 6,
User = 7,
Documentation = 8,
Document = 9,
CoreService = 10,
AutosavedInformation = 11,
Desktop = 12,
Caches = 13,
ApplicationSupport = 14,
Downloads = 15,
InputMethods = 16,
Movies = 17,
Music = 18,
Pictures = 19,
PrinterDescription = 20,
SharedPublic = 21,
PreferencePanes = 22,
ApplicationScripts = 23,
ItemReplacement = 99,
AllApplications = 100,
AllLibraries = 101,
Trash = 102,
}Variants§
Application = 1
Supported applications (Applications)
DemoApplication = 2
Unsupported applications, demonstration versions (Demos)
DeveloperApplication = 3
there is no one single Developer directory
developer applications (Developer/Applications). DEPRECATED - there is no one single Developer directory.
AdminApplication = 4
System and network administration applications (Administration)
Library = 5
Various documentation, support, and configuration files, resources (Library)
Developer = 6
there is no one single Developer directory
Developer resources (Developer) DEPRECATED - there is no one single Developer directory.
User = 7
User home directories (Users)
Documentation = 8
User home directories (Users)
Document = 9
documents (Documents)
CoreService = 10
Location of CoreServices directory (System/Library/CoreServices)
AutosavedInformation = 11
Location of autosaved documents (Documents/Autosaved)
Desktop = 12
Location of user’s desktop
Caches = 13
Location of discardable cache files (Library/Caches)
ApplicationSupport = 14
Location of application support files (plug-ins, etc) (Library/Application Support)
Downloads = 15
Location of the user’s “Downloads” directory
InputMethods = 16
Input methods (Library/Input Methods)
Movies = 17
Location of user’s Movies directory (~/Movies)
Music = 18
Location of user’s Music directory (~/Music)
Pictures = 19
Location of user’s Pictures directory (~/Pictures)
PrinterDescription = 20
Location of CoreServices directory (System/Library/CoreServices)
Location of CoreServices directory (System/Library/CoreServices)
PreferencePanes = 22
Location of CoreServices directory (System/Library/CoreServices)
ApplicationScripts = 23
Location of CoreServices directory (System/Library/CoreServices)
ItemReplacement = 99
Location of CoreServices directory (System/Library/CoreServices)
AllApplications = 100
User home directories (Users)
AllLibraries = 101
User home directories (Users)
Trash = 102
Location of Trash directory
Trait Implementations§
Source§impl Clone for SearchPathDirectory
impl Clone for SearchPathDirectory
Source§fn clone(&self) -> SearchPathDirectory
fn clone(&self) -> SearchPathDirectory
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SearchPathDirectory
Source§impl Debug for SearchPathDirectory
impl Debug for SearchPathDirectory
impl Eq for SearchPathDirectory
Source§impl PartialEq for SearchPathDirectory
impl PartialEq for SearchPathDirectory
Source§fn eq(&self, other: &SearchPathDirectory) -> bool
fn eq(&self, other: &SearchPathDirectory) -> bool
self and other values to be equal, and is used by ==.