Struct broot::shell_install::ShellInstall
source · [−]pub struct ShellInstall {
pub should_quit: bool,
/* private fields */
}
Fields
should_quit: bool
Implementations
sourceimpl ShellInstall
impl ShellInstall
pub fn new(force_install: bool) -> Self
sourcepub fn print(shell: &str) -> Result<(), ProgramError>
pub fn print(shell: &str) -> Result<(), ProgramError>
write on stdout the script building the function for the given shell
sourcepub fn check(&mut self) -> Result<(), ProgramError>
pub fn check(&mut self) -> Result<(), ProgramError>
check whether the shell function is installed, install it if it wasn’t refused before or if broot is launched with –install.
pub fn remove(&self, path: &Path) -> Result<()>
Auto Trait Implementations
impl RefUnwindSafe for ShellInstall
impl Send for ShellInstall
impl Sync for ShellInstall
impl Unpin for ShellInstall
impl UnwindSafe for ShellInstall
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