[][src]Struct nvim_rs::exttypes::window::Window

pub struct Window<W> where
    W: AsyncWrite + Send + Unpin + 'static, 
{ /* fields omitted */ }

A struct representing a neovim window. It is specific to a Neovim instance, and calling a method on it will always use this instance.

Methods

impl<W> Window<W> where
    W: AsyncWrite + Send + Sync + Unpin + 'static, 
[src]

pub async fn get_buf<'_>(&'_ self) -> Result<Buffer<W>, Box<CallError>>[src]

since: 1

pub async fn get_tabpage<'_>(&'_ self) -> Result<Tabpage<W>, Box<CallError>>[src]

since: 1

impl<W> Window<W> where
    W: AsyncWrite + Send + Sync + Unpin + 'static, 
[src]

pub fn new(code_data: Value, neovim: Neovim<W>) -> Window<W>[src]

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

Internal value, that represent type

pub async fn set_buf<'_, '_>(
    &'_ self,
    buffer: &'_ Buffer<W>
) -> Result<(), Box<CallError>>
[src]

since: 5

pub async fn get_cursor<'_>(&'_ self) -> Result<(i64, i64), Box<CallError>>[src]

since: 1

pub async fn set_cursor<'_>(
    &'_ self,
    pos: (i64, i64)
) -> Result<(), Box<CallError>>
[src]

since: 1

pub async fn get_height<'_>(&'_ self) -> Result<i64, Box<CallError>>[src]

since: 1

pub async fn set_height<'_>(&'_ self, height: i64) -> Result<(), Box<CallError>>[src]

since: 1

pub async fn get_width<'_>(&'_ self) -> Result<i64, Box<CallError>>[src]

since: 1

pub async fn set_width<'_>(&'_ self, width: i64) -> Result<(), Box<CallError>>[src]

since: 1

pub async fn get_var<'_, '_>(
    &'_ self,
    name: &'_ str
) -> Result<Value, Box<CallError>>
[src]

since: 1

pub async fn set_var<'_, '_>(
    &'_ self,
    name: &'_ str,
    value: Value
) -> Result<(), Box<CallError>>
[src]

since: 1

pub async fn del_var<'_, '_>(
    &'_ self,
    name: &'_ str
) -> Result<(), Box<CallError>>
[src]

since: 1

pub async fn get_option<'_, '_>(
    &'_ self,
    name: &'_ str
) -> Result<Value, Box<CallError>>
[src]

since: 1

pub async fn set_option<'_, '_>(
    &'_ self,
    name: &'_ str,
    value: Value
) -> Result<(), Box<CallError>>
[src]

since: 1

pub async fn get_position<'_>(&'_ self) -> Result<(i64, i64), Box<CallError>>[src]

since: 1

pub async fn get_number<'_>(&'_ self) -> Result<i64, Box<CallError>>[src]

since: 1

pub async fn is_valid<'_>(&'_ self) -> Result<bool, Box<CallError>>[src]

since: 1

pub async fn set_config<'_>(
    &'_ self,
    config: Vec<(Value, Value)>
) -> Result<(), Box<CallError>>
[src]

since: 6

pub async fn get_config<'_>(
    &'_ self
) -> Result<Vec<(Value, Value)>, Box<CallError>>
[src]

since: 6

pub async fn close<'_>(&'_ self, force: bool) -> Result<(), Box<CallError>>[src]

since: 6

Trait Implementations

impl<W: Clone> Clone for Window<W> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

impl<'_, W> IntoVal<Value> for &'_ Window<W> where
    W: AsyncWrite + Send + Sync + Unpin + 'static, 
[src]

Auto Trait Implementations

impl<W> !RefUnwindSafe for Window<W>

impl<W> Send for Window<W>

impl<W> Sync for Window<W>

impl<W> Unpin for Window<W>

impl<W> !UnwindSafe for Window<W>

Blanket Implementations

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

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

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

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 = Infallible

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.