pub struct ClearAutocmdsOptsBuilder(/* private fields */);Implementations§
Source§impl ClearAutocmdsOptsBuilder
impl ClearAutocmdsOptsBuilder
Sourcepub fn buffer(&mut self, buffer: Buffer) -> &mut Self
pub fn buffer(&mut self, buffer: Buffer) -> &mut Self
Only clear the autocommands local to a specific Buffer. Cannot be
used together with patterns.
Sourcepub fn events<'a, I>(&mut self, iter: I) -> &mut Selfwhere
I: IntoIterator<Item = &'a str>,
pub fn events<'a, I>(&mut self, iter: I) -> &mut Selfwhere
I: IntoIterator<Item = &'a str>,
Clear all the autocommands triggered by one or more of the specified events.
Sourcepub fn patterns<'a, I>(&mut self, iter: I) -> &mut Selfwhere
I: IntoIterator<Item = &'a str>,
pub fn patterns<'a, I>(&mut self, iter: I) -> &mut Selfwhere
I: IntoIterator<Item = &'a str>,
Only clear the autocommands matching specific patterns. For example, if
you have "*.py" as a pattern for a particular autocommand, you must
pass that exact pattern to clear it. Cannot be used together with
buffer.
Sourcepub fn group<Grp>(&mut self, group: Grp) -> &mut Selfwhere
Grp: StringOrInt,
pub fn group<Grp>(&mut self, group: Grp) -> &mut Selfwhere
Grp: StringOrInt,
Only clear the autocommands belonging to a specific augroup. The augroup can be specified by both id and name.
pub fn build(&mut self) -> ClearAutocmdsOpts
Trait Implementations§
Source§impl Clone for ClearAutocmdsOptsBuilder
impl Clone for ClearAutocmdsOptsBuilder
Source§fn clone(&self) -> ClearAutocmdsOptsBuilder
fn clone(&self) -> ClearAutocmdsOptsBuilder
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 ClearAutocmdsOptsBuilder
impl Default for ClearAutocmdsOptsBuilder
Source§fn default() -> ClearAutocmdsOptsBuilder
fn default() -> ClearAutocmdsOptsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClearAutocmdsOptsBuilder
impl RefUnwindSafe for ClearAutocmdsOptsBuilder
impl !Send for ClearAutocmdsOptsBuilder
impl !Sync for ClearAutocmdsOptsBuilder
impl Unpin for ClearAutocmdsOptsBuilder
impl UnwindSafe for ClearAutocmdsOptsBuilder
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.