1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use futures::io::AsyncWrite;
use rmpv::Value;

use crate::{impl_exttype_traits, rpc::model::IntoVal, Neovim};
/// A struct representing a neovim buffer. It is specific to a
/// [`Neovim`](crate::neovim::Neovim) instance, and calling a method on it will
/// always use this instance.
pub struct Buffer<W>
where
  W: AsyncWrite + Send + Unpin + 'static,
{
  pub(crate) code_data: Value,
  pub(crate) neovim: Neovim<W>,
}

impl_exttype_traits!(Buffer);