pub struct Shell {
pub state: Arc<UiMutex<State>>,
ui_state: Rc<RefCell<UiState>>,
widget: Box,
}
Fields§
§state: Arc<UiMutex<State>>
§ui_state: Rc<RefCell<UiState>>
§widget: Box
Implementations§
Source§impl Shell
impl Shell
pub fn new(settings: Rc<RefCell<Settings>>, options: ShellOptions) -> Shell
pub fn is_nvim_initialized(&self) -> bool
pub fn init(&mut self)
pub fn set_font_desc(&self, font_name: &str)
pub fn grab_focus(&self)
pub fn open_file(&self, path: &str)
pub fn cd(&self, path: &str)
pub fn detach_ui(&mut self)
pub fn edit_paste(&self)
pub fn edit_save_all(&self)
pub fn new_tab(&self)
pub fn set_detach_cb<F>(&self, cb: Option<F>)
pub fn set_nvim_started_cb<F>(&self, cb: Option<F>)
pub fn set_nvim_command_cb<F>(&self, cb: Option<F>)
pub fn set_completeopts(&self, options: &str)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Shell
impl !RefUnwindSafe for Shell
impl !Send for Shell
impl !Sync for Shell
impl Unpin for Shell
impl !UnwindSafe for Shell
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