[][src]Struct nvim_rs::neovim_api::Buffer

pub struct Buffer { /* fields omitted */ }

Methods

impl Buffer[src]

pub fn new(code_data: Value) -> Buffer[src]

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

Internal value, that represent type

pub async fn line_count<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>
) -> Result<i64, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn attach<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    send_buffer: bool,
    opts: Vec<(Value, Value)>
) -> Result<bool, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 4

pub async fn detach<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>
) -> Result<bool, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 4

pub async fn get_lines<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    start: i64,
    end: i64,
    strict_indexing: bool
) -> Result<Vec<String>, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn set_lines<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    start: i64,
    end: i64,
    strict_indexing: bool,
    replacement: Vec<String>
) -> Result<(), CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn get_offset<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    index: i64
) -> Result<i64, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 5

pub async fn get_var<'_, '_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    name: &'_ str
) -> Result<Value, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn get_changedtick<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>
) -> Result<i64, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 2

pub async fn get_keymap<'_, '_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    mode: &'_ str
) -> Result<Vec<Vec<(Value, Value)>>, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 3

pub async fn set_keymap<'_, '_, '_, '_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    mode: &'_ str,
    lhs: &'_ str,
    rhs: &'_ str,
    opts: Vec<(Value, Value)>
) -> Result<(), CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 6

pub async fn del_keymap<'_, '_, '_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    mode: &'_ str,
    lhs: &'_ str
) -> Result<(), CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 6

pub async fn get_commands<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    opts: Vec<(Value, Value)>
) -> Result<Vec<(Value, Value)>, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 4

pub async fn set_var<'_, '_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    name: &'_ str,
    value: Value
) -> Result<(), CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn del_var<'_, '_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    name: &'_ str
) -> Result<(), CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn get_option<'_, '_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    name: &'_ str
) -> Result<Value, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn set_option<'_, '_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    name: &'_ str,
    value: Value
) -> Result<(), CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn get_number<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>
) -> Result<i64, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn get_name<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>
) -> Result<String, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn set_name<'_, '_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    name: &'_ str
) -> Result<(), CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn is_loaded<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>
) -> Result<bool, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 5

pub async fn is_valid<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>
) -> Result<bool, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn get_mark<'_, '_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    name: &'_ str
) -> Result<(i64, i64), CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn add_highlight<'_, '_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    ns_id: i64,
    hl_group: &'_ str,
    line: i64,
    col_start: i64,
    col_end: i64
) -> Result<i64, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn clear_namespace<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    ns_id: i64,
    line_start: i64,
    line_end: i64
) -> Result<(), CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 5

pub async fn clear_highlight<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    ns_id: i64,
    line_start: i64,
    line_end: i64
) -> Result<(), CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 1

pub async fn set_virtual_text<'_, '_, W>(
    &'_ self,
    neovim: &'_ Neovim<W>,
    ns_id: i64,
    line: i64,
    chunks: Vec<Value>,
    opts: Vec<(Value, Value)>
) -> Result<i64, CallError> where
    W: AsyncWrite + Send + Unpin + 'static, 
[src]

since: 5

Trait Implementations

impl FromVal<Value> for Buffer[src]

impl<'a> IntoVal<Value> for &'a Buffer[src]

impl Clone for Buffer[src]

impl PartialEq<Buffer> for Buffer[src]

impl Debug for Buffer[src]

impl StructuralPartialEq for Buffer[src]

Auto Trait Implementations

impl Send for Buffer

impl Sync for Buffer

impl Unpin for Buffer

impl UnwindSafe for Buffer

impl RefUnwindSafe for Buffer

Blanket Implementations

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

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.

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

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

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