Struct neovim_lib::neovim_api::Buffer [] [src]

pub struct Buffer {
    // some fields omitted
}

Methods

impl Buffer
[src]

fn new(code_data: Value) -> Buffer

fn line_count(&self, neovim: &mut Neovim) -> Result<u64String>

fn get_line(&self, neovim: &mut Neovim, index: u64) -> Result<StringString>

fn set_line(&self, neovim: &mut Neovim, index: u64, line: &str) -> Result<()String>

fn del_line(&self, neovim: &mut Neovim, index: u64) -> Result<()String>

fn get_line_slice(&self, neovim: &mut Neovim, start: u64, end: u64, include_start: bool, include_end: bool) -> Result<Vec<String>, String>

fn set_line_slice(&self, neovim: &mut Neovim, start: u64, end: u64, include_start: bool, include_end: bool, replacement: Vec<String>) -> Result<()String>

fn get_var(&self, neovim: &mut Neovim, name: &str) -> Result<Value, String>

fn set_var(&self, neovim: &mut Neovim, name: &str, value: Value) -> Result<Value, String>

fn get_option(&self, neovim: &mut Neovim, name: &str) -> Result<Value, String>

fn set_option(&self, neovim: &mut Neovim, name: &str, value: Value) -> Result<()String>

fn get_number(&self, neovim: &mut Neovim) -> Result<u64String>

fn get_name(&self, neovim: &mut Neovim) -> Result<StringString>

fn set_name(&self, neovim: &mut Neovim, name: &str) -> Result<()String>

fn is_valid(&self, neovim: &mut Neovim) -> Result<boolString>

fn insert(&self, neovim: &mut Neovim, lnum: u64, lines: Vec<String>) -> Result<()String>

fn get_mark(&self, neovim: &mut Neovim, name: &str) -> Result<(u64, u64)String>

fn add_highlight(&self, neovim: &mut Neovim, src_id: u64, hl_group: &str, line: u64, col_start: u64, col_end: u64) -> Result<u64String>

fn clear_highlight(&self, neovim: &mut Neovim, src_id: u64, line_start: u64, line_end: u64) -> Result<()String>