pub struct GetAutocmdsOptsBuilder(/* private fields */);Implementations§
Source§impl GetAutocmdsOptsBuilder
impl GetAutocmdsOptsBuilder
Sourcepub fn buffer(&mut self, buffer: Buffer) -> &mut Self
pub fn buffer(&mut self, buffer: Buffer) -> &mut Self
Get the autocommands local to a specific Buffer. Cannot be used
Sourcepub fn events<'a, E: IntoIterator<Item = &'a str>>(
&mut self,
events: E,
) -> &mut Self
pub fn events<'a, E: IntoIterator<Item = &'a str>>( &mut self, events: E, ) -> &mut Self
Get all the autocommands triggered by one or more of the specified
Sourcepub fn group<G: StringOrInt>(&mut self, group: G) -> &mut Self
pub fn group<G: StringOrInt>(&mut self, group: G) -> &mut Self
Only get the autocommands belonging to a specific augroup. The
Sourcepub fn patterns<'a, P: IntoIterator<Item = &'a str>>(
&mut self,
patterns: P,
) -> &mut Self
pub fn patterns<'a, P: IntoIterator<Item = &'a str>>( &mut self, patterns: P, ) -> &mut Self
Only get the autocommands that match specific patterns. For example, if
pub fn build(&mut self) -> GetAutocmdsOpts
Trait Implementations§
Source§impl Clone for GetAutocmdsOptsBuilder
impl Clone for GetAutocmdsOptsBuilder
Auto Trait Implementations§
impl Freeze for GetAutocmdsOptsBuilder
impl RefUnwindSafe for GetAutocmdsOptsBuilder
impl !Send for GetAutocmdsOptsBuilder
impl !Sync for GetAutocmdsOptsBuilder
impl Unpin for GetAutocmdsOptsBuilder
impl UnwindSafe for GetAutocmdsOptsBuilder
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.