[−][src]Struct nvim_rs::exttypes::window::Window
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]
W: AsyncWrite + Send + Sync + Unpin + 'static,
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]
W: AsyncWrite + Send + Sync + Unpin + 'static,
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]
&'_ self,
buffer: &'_ Buffer<W>
) -> Result<(), Box<CallError>>
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]
&'_ self,
pos: (i64, i64)
) -> Result<(), Box<CallError>>
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]
&'_ self,
name: &'_ str
) -> Result<Value, Box<CallError>>
since: 1
pub async fn set_var<'_, '_>(
&'_ self,
name: &'_ str,
value: Value
) -> Result<(), Box<CallError>>
[src]
&'_ self,
name: &'_ str,
value: Value
) -> Result<(), Box<CallError>>
since: 1
pub async fn del_var<'_, '_>(
&'_ self,
name: &'_ str
) -> Result<(), Box<CallError>>
[src]
&'_ self,
name: &'_ str
) -> Result<(), Box<CallError>>
since: 1
pub async fn get_option<'_, '_>(
&'_ self,
name: &'_ str
) -> Result<Value, Box<CallError>>
[src]
&'_ self,
name: &'_ str
) -> Result<Value, Box<CallError>>
since: 1
pub async fn set_option<'_, '_>(
&'_ self,
name: &'_ str,
value: Value
) -> Result<(), Box<CallError>>
[src]
&'_ self,
name: &'_ str,
value: Value
) -> Result<(), Box<CallError>>
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]
&'_ self,
config: Vec<(Value, Value)>
) -> Result<(), Box<CallError>>
since: 6
pub async fn get_config<'_>(
&'_ self
) -> Result<Vec<(Value, Value)>, Box<CallError>>
[src]
&'_ self
) -> Result<Vec<(Value, Value)>, Box<CallError>>
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]
W: AsyncWrite + Send + Unpin + 'static,
impl<'_, W> IntoVal<Value> for &'_ Window<W> where
W: AsyncWrite + Send + Sync + Unpin + 'static,
[src]
W: AsyncWrite + Send + Sync + Unpin + 'static,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,