nvim_oxi_api/opts/
get_namespace.rs

1use crate::Window;
2
3/// Option passed to [`get_hl_ns()`][crate::get_hl_ns].
4#[derive(Clone, Debug, Default, macros::OptsBuilder)]
5#[repr(C)]
6pub struct GetNamespaceOpts {
7    #[builder(mask)]
8    mask: u64,
9
10    /// Used to retrieve a window's highlight namespace. A value of `-1` is
11    /// returned by [`get_hl_ns()`][crate::get_hl_ns] when
12    /// `nvim_win_set_hl_ns()` has not been called for the window (or was
13    /// called with a namespace of `-1`).
14    #[builder(argtype = "Window", inline = "{0}.0")]
15    winid: types::WinHandle,
16}