Struct neovim_lib::neovim_api::Buffer
source · [−]pub struct Buffer { /* private fields */ }Implementations
sourceimpl 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_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 RefUnwindSafe for Buffer
impl Send for Buffer
impl Sync for Buffer
impl Unpin for Buffer
impl UnwindSafe for Buffer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more