Struct nvim_oxi_api::opts::BufAttachOptsBuilder
source · pub struct BufAttachOptsBuilder(/* private fields */);Implementations§
source§impl BufAttachOptsBuilder
impl BufAttachOptsBuilder
sourcepub fn on_bytes<F>(&mut self, on_bytes: F) -> &mut Self
pub fn on_bytes<F>(&mut self, on_bytes: F) -> &mut Self
Callback invoked on change. It receives more granular information about
the change compared to on_lines.
sourcepub fn on_changedtick<F>(&mut self, on_changedtick: F) -> &mut Self
pub fn on_changedtick<F>(&mut self, on_changedtick: F) -> &mut Self
Callback invoked on changedtick increment without text change.
sourcepub fn on_reload<F>(&mut self, on_reload: F) -> &mut Self
pub fn on_reload<F>(&mut self, on_reload: F) -> &mut Self
Callback invoked on reload. The entire buffer content should be considered changed.
sourcepub fn preview(&mut self, preview: bool) -> &mut Self
pub fn preview(&mut self, preview: bool) -> &mut Self
Whether to also attach to command preview (i.e.
inccommand)
events.
sourcepub fn utf_sizes(&mut self, utf_sizes: bool) -> &mut Self
pub fn utf_sizes(&mut self, utf_sizes: bool) -> &mut Self
Whether to include the UTF-32 and UTF-16 sizes of the replaced region
as the last arguments of the
on_lines callback.
pub fn build(&mut self) -> BufAttachOpts
Trait Implementations§
source§impl Clone for BufAttachOptsBuilder
impl Clone for BufAttachOptsBuilder
source§fn clone(&self) -> BufAttachOptsBuilder
fn clone(&self) -> BufAttachOptsBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for BufAttachOptsBuilder
impl Default for BufAttachOptsBuilder
source§fn default() -> BufAttachOptsBuilder
fn default() -> BufAttachOptsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BufAttachOptsBuilder
impl RefUnwindSafe for BufAttachOptsBuilder
impl !Send for BufAttachOptsBuilder
impl !Sync for BufAttachOptsBuilder
impl Unpin for BufAttachOptsBuilder
impl UnwindSafe for BufAttachOptsBuilder
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
source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§type Error = Infallible
type Error = Infallible
The error type in the returned
Result.source§fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
Converts the value into a
Result.