pub struct ReVi {
pub is_running: bool,
/* private fields */
}Fields§
§is_running: boolImplementations§
Source§impl ReVi
impl ReVi
pub fn new(files: &[String]) -> Rc<RefCell<Self>>
pub fn cursor_position_u16(&self) -> (u16, u16)
pub fn set_cursor_position(&mut self, x: u16, y: u16)
pub fn mode(&self) -> &Mode
pub fn mode_mut(&mut self) -> &mut Mode
pub fn last_focused_window(&self) -> &Window
pub fn last_focused_window_mut(&mut self) -> &mut Window
pub fn focused_window(&self) -> &Window
pub fn focused_window_mut(&mut self) -> &mut Window
pub fn queued(&self) -> &[usize]
pub fn exit(&mut self)
pub fn next_window(&mut self)
pub fn change_modes(&mut self, mode: Mode)
pub fn enter_command_mode(&mut self)
pub fn exit_command_mode(&mut self)
pub fn execute_command_line(&mut self)
pub fn execute(&mut self, count: usize, commands: &[ReViCommand])
Trait Implementations§
Source§impl UserData for ReVi
impl UserData for ReVi
Source§fn add_methods<'lua, M: LuaUserDataMethods<'lua, Self>>(methods: &mut M)
fn add_methods<'lua, M: LuaUserDataMethods<'lua, Self>>(methods: &mut M)
Adds custom methods and operators specific to this userdata.
Source§fn add_fields<'lua, F>(_fields: &mut F)where
F: UserDataFields<'lua, Self>,
fn add_fields<'lua, F>(_fields: &mut F)where
F: UserDataFields<'lua, Self>,
Adds custom fields specific to this userdata.
Auto Trait Implementations§
impl Freeze for ReVi
impl !RefUnwindSafe for ReVi
impl !Send for ReVi
impl !Sync for ReVi
impl Unpin for ReVi
impl !UnwindSafe for ReVi
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
Source§impl<'lua, T> ToLuaMulti<'lua> for Twhere
T: ToLua<'lua>,
impl<'lua, T> ToLuaMulti<'lua> for Twhere
T: ToLua<'lua>,
Source§fn to_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
fn to_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
Performs the conversion.