Enum broot::shell_install::ShellInstallState
source · [−]pub enum ShellInstallState {
Undefined,
Refused,
Installed,
}
Variants
Undefined
Refused
Installed
Implementations
sourceimpl ShellInstallState
impl ShellInstallState
sourcepub fn write_file(self) -> Result<(), ProgramError>
pub fn write_file(self) -> Result<(), ProgramError>
write either the “installed” or the “refused” file, or remove those files.
This is useful in installation or test scripts when we don’t want the user to be prompted to install the function, or in case something doesn’t properly work in shell detections
Trait Implementations
sourceimpl Clone for ShellInstallState
impl Clone for ShellInstallState
sourcefn clone(&self) -> ShellInstallState
fn clone(&self) -> ShellInstallState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ShellInstallState
impl Debug for ShellInstallState
sourceimpl FromStr for ShellInstallState
impl FromStr for ShellInstallState
impl Copy for ShellInstallState
Auto Trait Implementations
impl RefUnwindSafe for ShellInstallState
impl Send for ShellInstallState
impl Sync for ShellInstallState
impl Unpin for ShellInstallState
impl UnwindSafe for ShellInstallState
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
impl<T> Pointable for T
impl<T> Pointable for T
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