nvim_oxi_api/opts/
create_augroup.rs1#[derive(Clone, Debug, Default)]
3#[repr(C)]
4pub struct CreateAugroupOpts {
5 clear: types::Object,
6}
7
8impl CreateAugroupOpts {
9 #[inline(always)]
10 pub fn builder() -> CreateAugroupOptsBuilder {
11 CreateAugroupOptsBuilder::default()
12 }
13}
14
15#[derive(Clone, Default)]
16pub struct CreateAugroupOptsBuilder(CreateAugroupOpts);
17
18impl CreateAugroupOptsBuilder {
19 #[inline]
21 pub fn clear(&mut self, clear: bool) -> &mut Self {
22 self.0.clear = clear.into();
23 self
24 }
25
26 #[inline]
27 pub fn build(&mut self) -> CreateAugroupOpts {
28 std::mem::take(&mut self.0)
29 }
30}