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