pub struct RealSys;
Trait Implementations§
Source§impl Sys for RealSys
impl Sys for RealSys
type ReadDirEntry = DirEntry
type Metadata = Metadata
Source§fn is_windows(&self) -> bool
fn is_windows(&self) -> bool
Check if the current platform is Windows. Read more
Source§fn current_dir(&self) -> Result<PathBuf>
fn current_dir(&self) -> Result<PathBuf>
Gets the current working directory.
Source§fn env_split_paths(&self, paths: &OsStr) -> Vec<PathBuf>
fn env_split_paths(&self, paths: &OsStr) -> Vec<PathBuf>
Splits a platform-specific PATH variable into a list of paths.
Source§fn env_windows_path_ext(&self) -> Cow<'static, [String]>
fn env_windows_path_ext(&self) -> Cow<'static, [String]>
Gets and parses the PATHEXT environment variable on Windows. Read more
Source§fn env_path_ext(&self) -> Option<OsString>
fn env_path_ext(&self) -> Option<OsString>
Gets the value of the PATHEXT environment variable. If not on Windows, simply return None.
Source§fn read_dir(
&self,
path: &Path,
) -> Result<Box<dyn Iterator<Item = Result<Self::ReadDirEntry>>>>
fn read_dir( &self, path: &Path, ) -> Result<Box<dyn Iterator<Item = Result<Self::ReadDirEntry>>>>
Reads the directory entries of the provided path.
Source§fn metadata(&self, path: &Path) -> Result<Self::Metadata>
fn metadata(&self, path: &Path) -> Result<Self::Metadata>
Gets the metadata of the provided path, following symlinks.
impl Copy for RealSys
Auto Trait Implementations§
impl Freeze for RealSys
impl RefUnwindSafe for RealSys
impl Send for RealSys
impl Sync for RealSys
impl Unpin for RealSys
impl UnwindSafe for RealSys
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