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
16
17
use crate::type_ref::{TypeRef, TypeRefDesc};
use crate::vector::Vector;

#[derive(Clone)]
pub struct VectorDesc<'tu, 'ge> {
	pub element_type: TypeRef<'tu, 'ge>,
}

impl<'tu, 'ge> VectorDesc<'tu, 'ge> {
	pub fn new(element_type: TypeRef<'tu, 'ge>) -> Self {
		Self { element_type }
	}

	pub fn vector_of_cv_string() -> Vector<'static, 'static> {
		Vector::new_desc(VectorDesc::new(TypeRefDesc::cv_string()))
	}
}