pub struct BufAttachOptsBuilder(/* private fields */);Implementations§
Source§impl BufAttachOptsBuilder
impl BufAttachOptsBuilder
Sourcepub fn on_bytes<F: ToFunction<OnBytesArgs, ShouldDetach>>(
&mut self,
on_bytes: F,
) -> &mut Self
pub fn on_bytes<F: ToFunction<OnBytesArgs, ShouldDetach>>( &mut self, on_bytes: F, ) -> &mut Self
Callback invoked on change. It receives more granular information about
Sourcepub fn on_changedtick<F: ToFunction<OnChangedtickArgs, ShouldDetach>>(
&mut self,
on_changedtick: F,
) -> &mut Self
pub fn on_changedtick<F: ToFunction<OnChangedtickArgs, ShouldDetach>>( &mut self, on_changedtick: F, ) -> &mut Self
Callback invoked on changedtick increment without text change.
Sourcepub fn on_detach<F: ToFunction<OnDetachArgs, ShouldDetach>>(
&mut self,
on_detach: F,
) -> &mut Self
pub fn on_detach<F: ToFunction<OnDetachArgs, ShouldDetach>>( &mut self, on_detach: F, ) -> &mut Self
Callback invoked on detach.
Sourcepub fn on_lines<F: ToFunction<OnLinesArgs, ShouldDetach>>(
&mut self,
on_lines: F,
) -> &mut Self
pub fn on_lines<F: ToFunction<OnLinesArgs, ShouldDetach>>( &mut self, on_lines: F, ) -> &mut Self
Callback invoked on change.
Sourcepub fn on_reload<F: ToFunction<OnReloadArgs, ShouldDetach>>(
&mut self,
on_reload: F,
) -> &mut Self
pub fn on_reload<F: ToFunction<OnReloadArgs, ShouldDetach>>( &mut self, on_reload: F, ) -> &mut Self
Callback invoked on reload. The entire buffer content should be
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.
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
pub fn build(&mut self) -> BufAttachOpts
Trait Implementations§
Source§impl Clone for BufAttachOptsBuilder
impl Clone for BufAttachOptsBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§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.