pub struct StdSys;Expand description
Sys over the standard library.
Trait Implementations§
Source§impl Sys for StdSys
impl Sys for StdSys
Source§fn real_path(&self, path: &Path) -> Option<PathBuf>
fn real_path(&self, path: &Path) -> Option<PathBuf>
The canonical form of
path, with symlinks resolved, or None if there
is nothing there. A resolved module’s canonical name is its real path.Source§fn read_source(&self, path: &Path) -> Option<String>
fn read_source(&self, path: &Path) -> Option<String>
The text of the file at
path, or None if it is not a readable UTF-8
file.Source§fn var(&self, name: &str) -> Option<String>
fn var(&self, name: &str) -> Option<String>
The environment variable
name, if it is set and UTF-8.Auto Trait Implementations§
impl Freeze for StdSys
impl RefUnwindSafe for StdSys
impl Send for StdSys
impl Sync for StdSys
impl Unpin for StdSys
impl UnsafeUnpin for StdSys
impl UnwindSafe for StdSys
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