Struct steamlocate::LibraryFolders
source · pub struct LibraryFolders { /* private fields */ }
Expand description
An instance which contains all the Steam library folders installed on the file system. Example:
let mut steamdir: SteamDir = SteamDir::locate().unwrap();
let libraryfolders: &LibraryFolders = steamdir.libraryfolders();
let paths: &Vec<PathBuf> = &libraryfolders.paths;
println!("{:#?}", paths);
ⓘ
{
"C:\\Program Files (x86)\\Steam\\steamapps",
"D:\\Steam\\steamapps",
"E:\\Steam\\steamapps",
"F:\\Steam\\steamapps",
...
}
Trait Implementations§
source§impl Clone for LibraryFolders
impl Clone for LibraryFolders
source§fn clone(&self) -> LibraryFolders
fn clone(&self) -> LibraryFolders
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LibraryFolders
impl Debug for LibraryFolders
source§impl Default for LibraryFolders
impl Default for LibraryFolders
source§fn default() -> LibraryFolders
fn default() -> LibraryFolders
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for LibraryFolders
impl Send for LibraryFolders
impl Sync for LibraryFolders
impl Unpin for LibraryFolders
impl UnwindSafe for LibraryFolders
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more