pub struct BufAttachOptsBuilder { /* private fields */ }
Expand description
Builder for BufAttachOpts
.
Implementations§
Source§impl BufAttachOptsBuilder
impl BufAttachOptsBuilder
Sourcepub fn preview(&mut self, value: bool) -> &mut Self
pub fn preview(&mut self, value: bool) -> &mut Self
Whether to also attach to command preview (i.e.
inccommand
)
events.
Source§impl BufAttachOptsBuilder
impl BufAttachOptsBuilder
Sourcepub fn on_bytes<F>(&mut self, fun: F) -> &mut Self
pub fn on_bytes<F>(&mut self, fun: 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, fun: F) -> &mut Self
pub fn on_changedtick<F>(&mut self, fun: F) -> &mut Self
Callback invoked on changedtick increment without text change.
Sourcepub fn on_reload<F>(&mut self, fun: F) -> &mut Self
pub fn on_reload<F>(&mut self, fun: F) -> &mut Self
Callback invoked on reload. The entire buffer content should be considered changed.
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 duplicate 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 moreAuto 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