nvim_oxi_api/opts/
get_context.rs

1use crate::types::ContextType;
2
3/// Options passed to [`get_context()`](crate::get_context).
4#[derive(Clone, Debug, Default, macros::OptsBuilder)]
5#[repr(C)]
6pub struct GetContextOpts {
7    #[builder(mask)]
8    mask: u64,
9
10    /// List of [`ContextType`]s to gather, or empty for all.
11    #[builder(
12        generics = "T: IntoIterator<Item = ContextType>",
13        argtype = "T",
14        inline = "{0}.into_iter().map(types::String::from).collect()"
15    )]
16    types: types::Array,
17}