1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// Options passed to [`Buffer::set_mark()`](crate::Buffer::get_mark).
/// Currently unused.
#[derive(Clone, Debug, Default, macros::OptsBuilder)]
#[repr(C)]
pub struct SetMarkOpts {
    #[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<&SetMarkOpts> for types::Dictionary {
    fn from(_: &SetMarkOpts) -> Self {
        Self::new()
    }
}