opencv_binding_generator/settings/
implemented.rs

1use std::collections::HashSet;
2use std::sync::LazyLock;
3
4pub static IMPLEMENTED_FUNCTION_LIKE_MACROS: LazyLock<HashSet<&str>> = LazyLock::new(|| HashSet::from(["CV_MAKETYPE"]));
5
6pub static IMPLEMENTED_SYSTEM_CLASSES: LazyLock<HashSet<&str>> = LazyLock::new(|| {
7	HashSet::from([
8		"std::pair",
9		"std::string",
10		"std::tuple",
11		"std::vector",
12		"ID3D11Device",
13		"ID3D11Texture2D",
14		"ID3D10Device",
15		"ID3D10Texture2D",
16		"IDirect3DDevice9",
17		"IDirect3DDevice9Ex",
18		"IDirect3DSurface9",
19	])
20});
21
22/// classes that have a manual `Debug` implementation, element is cpp_name(Reference)
23pub static IMPLEMENTED_MANUAL_DEBUG: LazyLock<HashSet<&str>> =
24	LazyLock::new(|| HashSet::from(["cv::Mat", "cv::MatSize", "cv::dnn::DictValue"]));
25
26/// cpp_name(Reference)
27pub static IMPLEMENTED_CONST_GENERICS: LazyLock<HashSet<&str>> = LazyLock::new(|| HashSet::from(["cv::Vec"]));
28
29/// cpp_name(Reference)
30pub static IMPLEMENTED_GENERICS: LazyLock<HashSet<&str>> = LazyLock::new(|| {
31	let mut out = HashSet::from([
32		"cv::Affine3",
33		"cv::Mat_",
34		"cv::Matx",
35		"cv::Point3_",
36		"cv::Point_",
37		"cv::Rect_",
38		"cv::Scalar_",
39		"cv::Size_",
40	]);
41	out.extend(&*IMPLEMENTED_CONST_GENERICS);
42	out
43});