nvim_rs/exttypes/
buffer.rs

1use futures::io::AsyncWrite;
2use rmpv::Value;
3
4use crate::{impl_exttype_traits, rpc::model::IntoVal, Neovim};
5/// A struct representing a neovim buffer. It is specific to a
6/// [`Neovim`](crate::neovim::Neovim) instance, and calling a method on it will
7/// always use this instance.
8pub struct Buffer<W>
9where
10  W: AsyncWrite + Send + Unpin + 'static,
11{
12  pub(crate) code_data: Value,
13  pub(crate) neovim: Neovim<W>,
14}
15
16impl_exttype_traits!(Buffer);