[][src]Struct neovim_lib::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 fn get_buf(&self, neovim: &mut Neovim) -> Result<Buffer, CallError>
[src]

since: 1

pub fn set_buf(
    &self,
    neovim: &mut Neovim,
    buffer: &Buffer
) -> Result<(), CallError>
[src]

since: 5

pub fn get_cursor(&self, neovim: &mut Neovim) -> Result<(i64, i64), CallError>
[src]

since: 1

pub fn set_cursor(
    &self,
    neovim: &mut Neovim,
    pos: (i64, i64)
) -> Result<(), CallError>
[src]

since: 1

pub fn get_height(&self, neovim: &mut Neovim) -> Result<i64, CallError>
[src]

since: 1

pub fn set_height(
    &self,
    neovim: &mut Neovim,
    height: i64
) -> Result<(), CallError>
[src]

since: 1

pub fn get_width(&self, neovim: &mut Neovim) -> Result<i64, CallError>
[src]

since: 1

pub fn set_width(
    &self,
    neovim: &mut Neovim,
    width: i64
) -> Result<(), CallError>
[src]

since: 1

pub fn get_var(
    &self,
    neovim: &mut Neovim,
    name: &str
) -> Result<Value, CallError>
[src]

since: 1

pub fn set_var(
    &self,
    neovim: &mut Neovim,
    name: &str,
    value: Value
) -> Result<(), CallError>
[src]

since: 1

pub fn del_var(&self, neovim: &mut Neovim, name: &str) -> Result<(), CallError>
[src]

since: 1

pub fn get_option(
    &self,
    neovim: &mut Neovim,
    name: &str
) -> Result<Value, CallError>
[src]

since: 1

pub fn set_option(
    &self,
    neovim: &mut Neovim,
    name: &str,
    value: Value
) -> Result<(), CallError>
[src]

since: 1

pub fn get_position(&self, neovim: &mut Neovim) -> Result<(i64, i64), CallError>
[src]

since: 1

pub fn get_tabpage(&self, neovim: &mut Neovim) -> Result<Tabpage, CallError>
[src]

since: 1

pub fn get_number(&self, neovim: &mut Neovim) -> Result<i64, CallError>
[src]

since: 1

pub fn is_valid(&self, neovim: &mut Neovim) -> Result<bool, CallError>
[src]

since: 1

Trait Implementations

impl Clone for Window
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<Window> for Window
[src]

impl Debug for Window
[src]

Auto Trait Implementations

impl Send for Window

impl Sync for Window

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.