nvim_oxi_api/opts/
get_text.rs

1/// Options passed to [`Buffer::get_text()`](crate::Buffer::get_text).
2/// Currently unused.
3#[derive(Clone, Debug, Default, macros::OptsBuilder)]
4#[repr(C)]
5pub struct GetTextOpts {
6    #[cfg(feature = "neovim-0-10")] // On 0.10 and nightly.
7    #[builder(mask)]
8    mask: u64,
9}
10
11#[cfg(not(feature = "neovim-0-10"))] // 0nly on 0.9.
12impl From<&GetTextOpts> for types::Dictionary {
13    #[inline]
14    fn from(_: &GetTextOpts) -> Self {
15        Self::new()
16    }
17}