[−][src]Struct neovim_lib::neovim_api::Buffer
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 fn line_count(&self, neovim: &mut Neovim) -> Result<i64, CallError>
[src]
since: 1
pub fn attach(
&self,
neovim: &mut Neovim,
send_buffer: bool,
opts: Vec<(Value, Value)>
) -> Result<bool, CallError>
[src]
&self,
neovim: &mut Neovim,
send_buffer: bool,
opts: Vec<(Value, Value)>
) -> Result<bool, CallError>
since: 4
pub fn detach(&self, neovim: &mut Neovim) -> Result<bool, CallError>
[src]
since: 4
pub fn get_lines(
&self,
neovim: &mut Neovim,
start: i64,
end: i64,
strict_indexing: bool
) -> Result<Vec<String>, CallError>
[src]
&self,
neovim: &mut Neovim,
start: i64,
end: i64,
strict_indexing: bool
) -> Result<Vec<String>, CallError>
since: 1
pub fn set_lines(
&self,
neovim: &mut Neovim,
start: i64,
end: i64,
strict_indexing: bool,
replacement: Vec<String>
) -> Result<(), CallError>
[src]
&self,
neovim: &mut Neovim,
start: i64,
end: i64,
strict_indexing: bool,
replacement: Vec<String>
) -> Result<(), CallError>
since: 1
pub fn get_offset(
&self,
neovim: &mut Neovim,
index: i64
) -> Result<i64, CallError>
[src]
&self,
neovim: &mut Neovim,
index: i64
) -> Result<i64, CallError>
since: 5
pub fn get_var(
&self,
neovim: &mut Neovim,
name: &str
) -> Result<Value, CallError>
[src]
&self,
neovim: &mut Neovim,
name: &str
) -> Result<Value, CallError>
since: 1
pub fn get_changedtick(&self, neovim: &mut Neovim) -> Result<i64, CallError>
[src]
since: 2
pub fn get_keymap(
&self,
neovim: &mut Neovim,
mode: &str
) -> Result<Vec<Vec<(Value, Value)>>, CallError>
[src]
&self,
neovim: &mut Neovim,
mode: &str
) -> Result<Vec<Vec<(Value, Value)>>, CallError>
since: 3
pub fn get_commands(
&self,
neovim: &mut Neovim,
opts: Vec<(Value, Value)>
) -> Result<Vec<(Value, Value)>, CallError>
[src]
&self,
neovim: &mut Neovim,
opts: Vec<(Value, Value)>
) -> Result<Vec<(Value, Value)>, CallError>
since: 4
pub fn set_var(
&self,
neovim: &mut Neovim,
name: &str,
value: Value
) -> Result<(), CallError>
[src]
&self,
neovim: &mut Neovim,
name: &str,
value: Value
) -> Result<(), CallError>
since: 1
pub fn del_var(&self, neovim: &mut Neovim, name: &str) -> Result<(), CallError>
[src]
since: 1
pub fn get_option(
&self,
neovim: &mut Neovim,
name: &str
) -> Result<Value, CallError>
[src]
&self,
neovim: &mut Neovim,
name: &str
) -> Result<Value, CallError>
since: 1
pub fn set_option(
&self,
neovim: &mut Neovim,
name: &str,
value: Value
) -> Result<(), CallError>
[src]
&self,
neovim: &mut Neovim,
name: &str,
value: Value
) -> Result<(), CallError>
since: 1
pub fn get_number(&self, neovim: &mut Neovim) -> Result<i64, CallError>
[src]
since: 1
pub fn get_name(&self, neovim: &mut Neovim) -> Result<String, CallError>
[src]
since: 1
pub fn set_name(&self, neovim: &mut Neovim, name: &str) -> Result<(), CallError>
[src]
since: 1
pub fn is_loaded(&self, neovim: &mut Neovim) -> Result<bool, CallError>
[src]
since: 5
pub fn is_valid(&self, neovim: &mut Neovim) -> Result<bool, CallError>
[src]
since: 1
pub fn get_mark(
&self,
neovim: &mut Neovim,
name: &str
) -> Result<(i64, i64), CallError>
[src]
&self,
neovim: &mut Neovim,
name: &str
) -> Result<(i64, i64), CallError>
since: 1
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>
[src]
&self,
neovim: &mut Neovim,
ns_id: i64,
hl_group: &str,
line: i64,
col_start: i64,
col_end: i64
) -> Result<i64, CallError>
since: 1
pub fn clear_namespace(
&self,
neovim: &mut Neovim,
ns_id: i64,
line_start: i64,
line_end: i64
) -> Result<(), CallError>
[src]
&self,
neovim: &mut Neovim,
ns_id: i64,
line_start: i64,
line_end: i64
) -> Result<(), CallError>
since: 5
pub fn clear_highlight(
&self,
neovim: &mut Neovim,
ns_id: i64,
line_start: i64,
line_end: i64
) -> Result<(), CallError>
[src]
&self,
neovim: &mut Neovim,
ns_id: i64,
line_start: i64,
line_end: i64
) -> Result<(), CallError>
since: 1
pub fn set_virtual_text(
&self,
neovim: &mut Neovim,
ns_id: i64,
line: i64,
chunks: Vec<Value>,
opts: Vec<(Value, Value)>
) -> Result<i64, CallError>
[src]
&self,
neovim: &mut Neovim,
ns_id: i64,
line: i64,
chunks: Vec<Value>,
opts: Vec<(Value, Value)>
) -> Result<i64, CallError>
since: 5
Trait Implementations
impl PartialEq<Buffer> for Buffer
[src]
impl Clone for Buffer
[src]
fn clone(&self) -> Buffer
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Buffer
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,