pub enum Shell {
Bash,
Zsh,
}
Variants
Bash
Zsh
Implementations
sourceimpl Shell
impl Shell
pub fn detect_shell() -> Result<Self, ShellDetectError>
pub fn set_path(&self, path: impl AsRef<Path>) -> String
pub fn set_env(&self, name: impl Display, value: impl Display) -> String
pub fn auto_switch_hook(&self, version_file: &File) -> String
pub fn rehash(&self) -> Option<String>
pub fn to_clap_shell(&self) -> Shell
Trait Implementations
impl Copy for Shell
Auto Trait Implementations
impl RefUnwindSafe for Shell
impl Send for Shell
impl Sync for Shell
impl Unpin for Shell
impl UnwindSafe for Shell
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more