Struct BufAttachOptsBuilder
pub struct BufAttachOptsBuilder(BufAttachOpts);Tuple Fields§
§0: BufAttachOptsImplementations§
§impl BufAttachOptsBuilder
impl BufAttachOptsBuilder
pub fn on_bytes<F>(&mut self, on_bytes: F) -> &mut BufAttachOptsBuilder
pub fn on_bytes<F>(&mut self, on_bytes: F) -> &mut BufAttachOptsBuilder
Callback invoked on change. It receives more granular information about
pub fn on_changedtick<F>(
&mut self,
on_changedtick: F,
) -> &mut BufAttachOptsBuilder
pub fn on_changedtick<F>( &mut self, on_changedtick: F, ) -> &mut BufAttachOptsBuilder
Callback invoked on changedtick increment without text change.
pub fn on_detach<F>(&mut self, on_detach: F) -> &mut BufAttachOptsBuilder
pub fn on_detach<F>(&mut self, on_detach: F) -> &mut BufAttachOptsBuilder
Callback invoked on detach.
pub fn on_lines<F>(&mut self, on_lines: F) -> &mut BufAttachOptsBuilder
pub fn on_lines<F>(&mut self, on_lines: F) -> &mut BufAttachOptsBuilder
Callback invoked on change.
pub fn on_reload<F>(&mut self, on_reload: F) -> &mut BufAttachOptsBuilder
pub fn on_reload<F>(&mut self, on_reload: F) -> &mut BufAttachOptsBuilder
Callback invoked on reload. The entire buffer content should be
pub fn preview(&mut self, preview: bool) -> &mut BufAttachOptsBuilder
pub fn preview(&mut self, preview: bool) -> &mut BufAttachOptsBuilder
Whether to also attach to command preview (i.e.
pub fn utf_sizes(&mut self, utf_sizes: bool) -> &mut BufAttachOptsBuilder
pub fn utf_sizes(&mut self, utf_sizes: bool) -> &mut BufAttachOptsBuilder
Whether to include the UTF-32 and UTF-16 sizes of the replaced region
pub fn build(&mut self) -> BufAttachOpts
Trait Implementations§
§impl Clone for BufAttachOptsBuilder
impl Clone for BufAttachOptsBuilder
§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 more§impl Default for BufAttachOptsBuilder
impl Default for BufAttachOptsBuilder
§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 UnsafeUnpin 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§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.§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.