1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Options passed to [`Buffer::get_text()`](crate::Buffer::get_text).
/// Currently unused.
#[derive(Clone, Debug, Default, macros::OptsBuilder)]
#[repr(C)]
pub struct GetTextOpts {
    #[cfg(feature = "neovim-0-10")] // On 0.10 and nightly.
    #[builder(mask)]
    mask: u64,
}

#[cfg(not(feature = "neovim-0-10"))] // 0nly on 0.9.
impl From<&GetTextOpts> for types::Dictionary {
    #[inline]
    fn from(_: &GetTextOpts) -> Self {
        Self::new()
    }
}