[−][src]Struct neovim_lib::neovim_api::Buffer
Methods
impl Buffer
[src]
impl Buffer
pub fn new(code_data: Value) -> Buffer
[src]
pub fn new(code_data: Value) -> Buffer
pub fn get_value(&self) -> &Value
[src]
pub fn get_value(&self) -> &Value
Internal value, that represent type
pub fn line_count(&self, neovim: &mut Neovim) -> Result<u64, CallError>
[src]
pub fn line_count(&self, neovim: &mut Neovim) -> Result<u64, CallError>
since: 1
pub fn attach(
&self,
neovim: &mut Neovim,
send_buffer: bool,
opts: Vec<(Value, Value)>
) -> Result<bool, CallError>
[src]
pub fn attach(
&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]
pub fn detach(&self, neovim: &mut Neovim) -> Result<bool, CallError>
since: 4
pub fn get_lines(
&self,
neovim: &mut Neovim,
start: u64,
end: u64,
strict_indexing: bool
) -> Result<Vec<String>, CallError>
[src]
pub fn get_lines(
&self,
neovim: &mut Neovim,
start: u64,
end: u64,
strict_indexing: bool
) -> Result<Vec<String>, CallError>
since: 1
pub fn set_lines(
&self,
neovim: &mut Neovim,
start: u64,
end: u64,
strict_indexing: bool,
replacement: Vec<String>
) -> Result<(), CallError>
[src]
pub fn set_lines(
&self,
neovim: &mut Neovim,
start: u64,
end: u64,
strict_indexing: bool,
replacement: Vec<String>
) -> Result<(), CallError>
since: 1
pub fn get_var(
&self,
neovim: &mut Neovim,
name: &str
) -> Result<Value, CallError>
[src]
pub fn get_var(
&self,
neovim: &mut Neovim,
name: &str
) -> Result<Value, CallError>
since: 1
pub fn get_changedtick(&self, neovim: &mut Neovim) -> Result<u64, CallError>
[src]
pub fn get_changedtick(&self, neovim: &mut Neovim) -> Result<u64, CallError>
since: 2
pub fn get_keymap(
&self,
neovim: &mut Neovim,
mode: &str
) -> Result<Vec<Vec<(Value, Value)>>, CallError>
[src]
pub fn get_keymap(
&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]
pub fn get_commands(
&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]
pub fn set_var(
&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]
pub fn del_var(&self, neovim: &mut Neovim, name: &str) -> Result<(), CallError>
since: 1
pub fn get_option(
&self,
neovim: &mut Neovim,
name: &str
) -> Result<Value, CallError>
[src]
pub fn get_option(
&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]
pub fn set_option(
&self,
neovim: &mut Neovim,
name: &str,
value: Value
) -> Result<(), CallError>
since: 1
pub fn get_number(&self, neovim: &mut Neovim) -> Result<u64, CallError>
[src]
pub fn get_number(&self, neovim: &mut Neovim) -> Result<u64, CallError>
since: 1
pub fn get_name(&self, neovim: &mut Neovim) -> Result<String, CallError>
[src]
pub fn get_name(&self, neovim: &mut Neovim) -> Result<String, CallError>
since: 1
pub fn set_name(&self, neovim: &mut Neovim, name: &str) -> Result<(), CallError>
[src]
pub fn set_name(&self, neovim: &mut Neovim, name: &str) -> Result<(), CallError>
since: 1
pub fn is_valid(&self, neovim: &mut Neovim) -> Result<bool, CallError>
[src]
pub fn is_valid(&self, neovim: &mut Neovim) -> Result<bool, CallError>
since: 1
pub fn get_mark(
&self,
neovim: &mut Neovim,
name: &str
) -> Result<(u64, u64), CallError>
[src]
pub fn get_mark(
&self,
neovim: &mut Neovim,
name: &str
) -> Result<(u64, u64), CallError>
since: 1
pub fn add_highlight(
&self,
neovim: &mut Neovim,
src_id: u64,
hl_group: &str,
line: u64,
col_start: u64,
col_end: u64
) -> Result<u64, CallError>
[src]
pub fn add_highlight(
&self,
neovim: &mut Neovim,
src_id: u64,
hl_group: &str,
line: u64,
col_start: u64,
col_end: u64
) -> Result<u64, CallError>
since: 1
pub fn clear_highlight(
&self,
neovim: &mut Neovim,
src_id: u64,
line_start: u64,
line_end: u64
) -> Result<(), CallError>
[src]
pub fn clear_highlight(
&self,
neovim: &mut Neovim,
src_id: u64,
line_start: u64,
line_end: u64
) -> Result<(), CallError>
since: 1
Trait Implementations
impl PartialEq<Buffer> for Buffer
[src]
impl PartialEq<Buffer> for Buffer
fn eq(&self, other: &Buffer) -> bool
[src]
fn eq(&self, other: &Buffer) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Buffer) -> bool
[src]
fn ne(&self, other: &Buffer) -> bool
This method tests for !=
.
impl Clone for Buffer
[src]
impl Clone for Buffer
fn clone(&self) -> Buffer
[src]
fn clone(&self) -> Buffer
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Buffer
[src]
impl Debug for Buffer
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
type Owned = T
fn to_owned(&self) -> T
[src]
fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)
[src]
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more