pub enum ShellMode {
Bash,
Zsh,
}Expand description
Shellが提供する互換動作を選択する。
Variants§
Implementations§
Source§impl ShellMode
impl ShellMode
Sourcepub fn from_environment(value: Option<&str>) -> Self
pub fn from_environment(value: Option<&str>) -> Self
ISKSH_MODE環境変数の値からモードを解決する。
値が正確にzshの場合だけShellMode::Zshを選択する。
未設定または未対応の値はShellMode::Bashへフォールバックする。
Trait Implementations§
impl Copy for ShellMode
impl Eq for ShellMode
impl StructuralPartialEq for ShellMode
Auto Trait Implementations§
impl Freeze for ShellMode
impl RefUnwindSafe for ShellMode
impl Send for ShellMode
impl Sync for ShellMode
impl Unpin for ShellMode
impl UnsafeUnpin for ShellMode
impl UnwindSafe for ShellMode
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