Struct Shell

Source
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

Source

pub fn new(settings: Rc<RefCell<Settings>>, options: ShellOptions) -> Shell

Source

pub fn is_nvim_initialized(&self) -> bool

Source

pub fn init(&mut self)

Source

fn create_context_menu(&self) -> Menu

Source

pub fn set_font_desc(&self, font_name: &str)

Source

pub fn grab_focus(&self)

Source

pub fn open_file(&self, path: &str)

Source

pub fn cd(&self, path: &str)

Source

pub fn detach_ui(&mut self)

Source

pub fn edit_paste(&self)

Source

pub fn edit_save_all(&self)

Source

pub fn new_tab(&self)

Source

pub fn set_detach_cb<F>(&self, cb: Option<F>)
where F: FnMut() + Send + 'static,

Source

pub fn set_nvim_started_cb<F>(&self, cb: Option<F>)
where F: FnMut() + Send + 'static,

Source

pub fn set_nvim_command_cb<F>(&self, cb: Option<F>)
where F: FnMut(&mut State, NvimCommand) + Send + 'static,

Source

pub fn set_completeopts(&self, options: &str)

Trait Implementations§

Source§

impl Deref for Shell

Source§

type Target = Box

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Box

Dereferences the value.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.