Struct nvim_oxi_api::opts::GetAutocmdsOptsBuilder
source · 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
together with patterns.
sourcepub fn events<'a, I>(&mut self, events: I) -> &mut Selfwhere
I: IntoIterator<Item = &'a str>,
pub fn events<'a, I>(&mut self, events: I) -> &mut Selfwhere
I: IntoIterator<Item = &'a str>,
Get all the autocommands triggered by one or more of the specified events.
sourcepub fn group<Group>(&mut self, group: Group) -> &mut Selfwhere
Group: StringOrInt,
pub fn group<Group>(&mut self, group: Group) -> &mut Selfwhere
Group: StringOrInt,
Only get the autocommands belonging to a specific augroup. The augroup can be specified by both id and name.
sourcepub fn patterns<'a, I>(&mut self, patterns: I) -> &mut Selfwhere
I: IntoIterator<Item = &'a str>,
pub fn patterns<'a, I>(&mut self, patterns: I) -> &mut Selfwhere
I: IntoIterator<Item = &'a str>,
Only get the autocommands that match 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.
pub fn build(&mut self) -> GetAutocmdsOpts
Trait Implementations§
source§impl Clone for GetAutocmdsOptsBuilder
impl Clone for GetAutocmdsOptsBuilder
source§fn clone(&self) -> GetAutocmdsOptsBuilder
fn clone(&self) -> GetAutocmdsOptsBuilder
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 GetAutocmdsOptsBuilder
impl Default for GetAutocmdsOptsBuilder
source§fn default() -> GetAutocmdsOptsBuilder
fn default() -> GetAutocmdsOptsBuilder
Returns the “default value” for a type. Read more
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> IntoResult<T> for T
impl<T> IntoResult<T> for T
§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.