[][src]Struct nvim_rs::neovim_api::Window

pub struct Window { /* fields omitted */ }

Methods

impl Window[src]

pub fn new(code_data: Value) -> Window[src]

pub fn get_value(&self) -> &Value[src]

Internal value, that represent type

pub async fn get_buf<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>
) -> Result<Buffer, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn set_buf<'_, '_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    buffer: &'_ Buffer
) -> Result<(), CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 5

pub async fn get_cursor<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>
) -> Result<(i64, i64), CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn set_cursor<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    pos: (i64, i64)
) -> Result<(), CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn get_height<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>
) -> Result<i64, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn set_height<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    height: i64
) -> Result<(), CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn get_width<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>
) -> Result<i64, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn set_width<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    width: i64
) -> Result<(), CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn get_var<'_, '_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    name: &'_ str
) -> Result<Value, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn set_var<'_, '_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    name: &'_ str,
    value: Value
) -> Result<(), CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn del_var<'_, '_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    name: &'_ str
) -> Result<(), CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn get_option<'_, '_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    name: &'_ str
) -> Result<Value, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn set_option<'_, '_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    name: &'_ str,
    value: Value
) -> Result<(), CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn get_position<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>
) -> Result<(i64, i64), CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn get_tabpage<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>
) -> Result<Tabpage, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn get_number<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>
) -> Result<i64, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn is_valid<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>
) -> Result<bool, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn set_config<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    config: Vec<(Value, Value)>
) -> Result<(), CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 6

pub async fn get_config<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>
) -> Result<Vec<(Value, Value)>, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 6

pub async fn close<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    force: bool
) -> Result<(), CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 6

Trait Implementations

impl FromVal<Value> for Window[src]

impl<'a> IntoVal<Value> for &'a Window[src]

impl Clone for Window[src]

impl PartialEq<Window> for Window[src]

impl Debug for Window[src]

impl StructuralPartialEq for Window[src]

Auto Trait Implementations

impl Send for Window

impl Sync for Window

impl Unpin for Window

impl UnwindSafe for Window

impl RefUnwindSafe for Window

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]