opencv_binding_generator/vector/
desc.rs

1use crate::type_ref::{TypeRef, TypeRefDesc};
2use crate::vector::Vector;
3
4#[derive(Clone)]
5pub struct VectorDesc<'tu, 'ge> {
6	pub element_type: TypeRef<'tu, 'ge>,
7}
8
9impl<'tu, 'ge> VectorDesc<'tu, 'ge> {
10	pub fn new(element_type: TypeRef<'tu, 'ge>) -> Self {
11		Self { element_type }
12	}
13
14	pub fn vector_of_cv_string() -> Vector<'static, 'static> {
15		Vector::new_desc(VectorDesc::new(TypeRefDesc::cv_string()))
16	}
17}