pub struct ClearAutocmdsOptsBuilder { /* private fields */ }
Expand description
Builder for ClearAutocmdsOpts
.
Implementations§
Source§impl ClearAutocmdsOptsBuilder
impl ClearAutocmdsOptsBuilder
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 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 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