opencv-binding-generator 0.101.0

Binding generator for opencv crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::collections::HashSet;
use std::sync::LazyLock;

use crate::element::UNNAMED;

/// List of C++ argument names that are allowed to be userdata for a callback
pub static ARGUMENT_NAMES_USERDATA: LazyLock<HashSet<&str>> =
	LazyLock::new(|| HashSet::from(["userdata", "userData", "cookie", UNNAMED]));

/// List of C++ argument names that are forbidden to be slice arguments
pub static ARGUMENT_NAMES_NOT_SLICE: LazyLock<HashSet<&str>> = LazyLock::new(|| HashSet::from(["rmsd"]));

/// List of C++ argument names that can hint on multiple connected slice arguments in a function
pub static ARGUMENT_NAMES_MULTIPLE_SLICE: LazyLock<HashSet<&str>> =
	LazyLock::new(|| HashSet::from(["a", "b", "src", "dst", "lut", "globalsize", "localsize"]));