pub struct Buffer { /* private fields */ }
Implementations§
Source§impl Buffer
impl Buffer
pub fn new(code_data: Value) -> Buffer
Sourcepub fn attach(
&self,
neovim: &mut Neovim,
send_buffer: bool,
opts: Vec<(Value, Value)>,
) -> Result<bool, CallError>
pub fn attach( &self, neovim: &mut Neovim, send_buffer: bool, opts: Vec<(Value, Value)>, ) -> Result<bool, CallError>
since: 4
Sourcepub fn get_lines(
&self,
neovim: &mut Neovim,
start: i64,
end: i64,
strict_indexing: bool,
) -> Result<Vec<String>, CallError>
pub fn get_lines( &self, neovim: &mut Neovim, start: i64, end: i64, strict_indexing: bool, ) -> Result<Vec<String>, CallError>
since: 1
Sourcepub fn set_lines(
&self,
neovim: &mut Neovim,
start: i64,
end: i64,
strict_indexing: bool,
replacement: Vec<String>,
) -> Result<(), CallError>
pub fn set_lines( &self, neovim: &mut Neovim, start: i64, end: i64, strict_indexing: bool, replacement: Vec<String>, ) -> Result<(), CallError>
since: 1
Sourcepub fn get_offset(
&self,
neovim: &mut Neovim,
index: i64,
) -> Result<i64, CallError>
pub fn get_offset( &self, neovim: &mut Neovim, index: i64, ) -> Result<i64, CallError>
since: 5
Sourcepub fn get_keymap(
&self,
neovim: &mut Neovim,
mode: &str,
) -> Result<Vec<Vec<(Value, Value)>>, CallError>
pub fn get_keymap( &self, neovim: &mut Neovim, mode: &str, ) -> Result<Vec<Vec<(Value, Value)>>, CallError>
since: 3
Sourcepub fn get_commands(
&self,
neovim: &mut Neovim,
opts: Vec<(Value, Value)>,
) -> Result<Vec<(Value, Value)>, CallError>
pub fn get_commands( &self, neovim: &mut Neovim, opts: Vec<(Value, Value)>, ) -> Result<Vec<(Value, Value)>, CallError>
since: 4
Sourcepub fn set_var(
&self,
neovim: &mut Neovim,
name: &str,
value: Value,
) -> Result<(), CallError>
pub fn set_var( &self, neovim: &mut Neovim, name: &str, value: Value, ) -> Result<(), CallError>
since: 1
Sourcepub fn get_option(
&self,
neovim: &mut Neovim,
name: &str,
) -> Result<Value, CallError>
pub fn get_option( &self, neovim: &mut Neovim, name: &str, ) -> Result<Value, CallError>
since: 1
Sourcepub fn set_option(
&self,
neovim: &mut Neovim,
name: &str,
value: Value,
) -> Result<(), CallError>
pub fn set_option( &self, neovim: &mut Neovim, name: &str, value: Value, ) -> Result<(), CallError>
since: 1
Sourcepub fn get_mark(
&self,
neovim: &mut Neovim,
name: &str,
) -> Result<(i64, i64), CallError>
pub fn get_mark( &self, neovim: &mut Neovim, name: &str, ) -> Result<(i64, i64), CallError>
since: 1
Sourcepub fn add_highlight(
&self,
neovim: &mut Neovim,
ns_id: i64,
hl_group: &str,
line: i64,
col_start: i64,
col_end: i64,
) -> Result<i64, CallError>
pub fn add_highlight( &self, neovim: &mut Neovim, ns_id: i64, hl_group: &str, line: i64, col_start: i64, col_end: i64, ) -> Result<i64, CallError>
since: 1
Sourcepub fn clear_namespace(
&self,
neovim: &mut Neovim,
ns_id: i64,
line_start: i64,
line_end: i64,
) -> Result<(), CallError>
pub fn clear_namespace( &self, neovim: &mut Neovim, ns_id: i64, line_start: i64, line_end: i64, ) -> Result<(), CallError>
since: 5
Trait Implementations§
impl StructuralPartialEq for Buffer
Auto Trait Implementations§
impl Freeze for Buffer
impl RefUnwindSafe for Buffer
impl Send for Buffer
impl Sync for Buffer
impl Unpin for Buffer
impl UnwindSafe for Buffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more