Struct rsnvim::api::Window

source ·
pub struct Window { /* private fields */ }
Expand description

A Neovim buffer

This struct exposes each way a user can create and interact with a window.

Implementations§

source§

impl Window

The below implementations are autogenerated using the Neovim API

source

pub fn set_config(&mut self, config: Vec<(Value, Value)>) -> Result<(), Error>

Since: 6

source

pub fn get_config(&mut self) -> Result<Vec<(Value, Value)>, Error>

Since: 6

source

pub fn get_buf(&mut self) -> Result<Buffer, Error>

Since: 1

source

pub fn set_buf(&mut self, buffer: Buffer) -> Result<(), Error>

Since: 5

source

pub fn get_cursor(&mut self) -> Result<(i64, i64), Error>

Since: 1

source

pub fn set_cursor(&mut self, pos: (i64, i64)) -> Result<(), Error>

Since: 1

source

pub fn get_height(&mut self) -> Result<i64, Error>

Since: 1

source

pub fn set_height(&mut self, height: i64) -> Result<(), Error>

Since: 1

source

pub fn get_width(&mut self) -> Result<i64, Error>

Since: 1

source

pub fn set_width(&mut self, width: i64) -> Result<(), Error>

Since: 1

source

pub fn get_var(&mut self, name: String) -> Result<Value, Error>

Since: 1

source

pub fn set_var(&mut self, name: String, value: Value) -> Result<(), Error>

Since: 1

source

pub fn del_var(&mut self, name: String) -> Result<(), Error>

Since: 1

source

pub fn get_position(&mut self) -> Result<(i64, i64), Error>

Since: 1

source

pub fn get_tabpage(&mut self) -> Result<Tabpage, Error>

Since: 1

source

pub fn get_number(&mut self) -> Result<i64, Error>

Since: 1

source

pub fn is_valid(&mut self) -> Result<bool, Error>

Since: 1

source

pub fn hide(&mut self) -> Result<(), Error>

Since: 7

source

pub fn close(&mut self, force: bool) -> Result<(), Error>

Since: 6

source

pub fn call(&mut self, fun: Value) -> Result<Value, Error>

Since: 7

source

pub fn set_hl_ns(&mut self, ns_id: i64) -> Result<(), Error>

Since: 10

source

pub fn text_height( &mut self, opts: Vec<(Value, Value)>, ) -> Result<Vec<(Value, Value)>, Error>

Since: 12

source§

impl Window

source

pub fn new(data: Value, session: Arc<Mutex<Session>>) -> Self

Trait Implementations§

source§

impl From<Window> for Value

source§

fn from(value: Window) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for Window

§

impl RefUnwindSafe for Window

§

impl Send for Window

§

impl Sync for Window

§

impl Unpin for Window

§

impl UnwindSafe for Window

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<T, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.