pub unsafe fn parse_from_str_unchecked(text: &str) -> Self {
        Shell(match text {
            "bash" => Bash,
            "fish" => Fish,
            "zsh" => Zsh,
            "powershell" => PowerShell,
            "elvish" => Elvish,
            _ => unreachable_unchecked(),
        })
    }
/// Convert a string to `Shell`
///
/// ### Safety
///
/// It is safe when `text` is always one of `["bash", "fish", "zsh", "powershell", "elvish"]`.
/// Otherwise, it returns `unreachable_unchecked()`.
Convert a string to `Shell`
Convert a string to ` Shell `
pub unsafe fn parse_from_str_unchecked(text: &str) -> Self {
        Shell(match text {
            "bash" => Bash,
            "fish" => Fish,
            "zsh" => Zsh,
            "powershell" => PowerShell,
            "elvish" => Elvish,
            _ => unreachable_unchecked(),
        })
    }
pub unsafe fn parse_from_str_unchecked ( text : & str ) -> Self { Shell ( match text { " " => Bash , " " => Fish , " " => Zsh , " " => PowerShell , " " => Elvish , _ => unreachable_unchecked ( ) , } ) }
Convert a string to `Shell`
Convert a string to ` Shell `
text
&str
text
&str
safety
It is safe when `text` is always one of `["bash", "fish", "zsh", "powershell", "elvish"]`.
Otherwise, it returns `unreachable_unchecked()`.
It is safe when ` text ` is always one of ` [ " bash " " fish " " zsh " " powershell " " elvish " ] ` . Otherwise it returns ` unreachable_unchecked () ` .