Struct argc::NativeRuntime
source · pub struct NativeRuntime;Trait Implementations§
source§impl Clone for NativeRuntime
impl Clone for NativeRuntime
source§fn clone(&self) -> NativeRuntime
fn clone(&self) -> NativeRuntime
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 NativeRuntime
impl Debug for NativeRuntime
source§impl Default for NativeRuntime
impl Default for NativeRuntime
source§fn default() -> NativeRuntime
fn default() -> NativeRuntime
Returns the “default value” for a type. Read more
source§impl Runtime for NativeRuntime
impl Runtime for NativeRuntime
fn os(&self) -> String
fn shell_path(&self) -> Result<String>
fn bash_path(&self) -> Option<String>
fn exec_bash_functions( &self, script_file: &str, functions: &[&str], args: &[String], envs: HashMap<String, String>, ) -> Option<Vec<String>>
fn current_exe(&self) -> Option<String>
fn current_dir(&self) -> Option<String>
fn env_vars(&self) -> HashMap<String, String>
fn env_var(&self, name: &str) -> Option<String>
fn which(&self, name: &str) -> Option<String>
fn exist_path(&self, path: &str) -> bool
fn parent_path(&self, path: &str) -> Option<String>
fn join_path(&self, path: &str, parts: &[&str]) -> String
fn chdir(&self, cwd: &str, cd: &str) -> Option<String>
fn metadata(&self, path: &str) -> Option<(bool, bool, bool)>
fn read_dir(&self, path: &str) -> Option<Vec<String>>
fn read_to_string(&self, path: &str) -> Option<String>
const INTERNAL_SYMBOL: &'static str = "___internal___"
fn is_windows(&self) -> bool
fn shell_args(&self, shell_path: &str) -> Vec<String>
fn basename(&self, path: &str) -> Option<String>
fn load_dotenv(&self, path: &str) -> Option<HashMap<String, String>>
fn path_env_with_current_exe(&self) -> String
impl Copy for NativeRuntime
Auto Trait Implementations§
impl Freeze for NativeRuntime
impl RefUnwindSafe for NativeRuntime
impl Send for NativeRuntime
impl Sync for NativeRuntime
impl Unpin for NativeRuntime
impl UnwindSafe for NativeRuntime
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more