Rename Type::Vector to CxxVector
diff --git a/gen/write.rs b/gen/write.rs
index 6c43928..deae886 100644
--- a/gen/write.rs
+++ b/gen/write.rs
@@ -125,7 +125,7 @@
},
Type::RustBox(_) => out.include.type_traits = true,
Type::UniquePtr(_) => out.include.memory = true,
- Type::Vector(_) => out.include.vector = true,
+ Type::CxxVector(_) => out.include.vector = true,
Type::SliceRefU8(_) => out.include.cstdint = true,
_ => {}
}
@@ -478,7 +478,7 @@
match &efn.ret {
Some(Type::RustBox(_)) => write!(out, ".into_raw()"),
Some(Type::UniquePtr(_)) => write!(out, ".release()"),
- Some(Type::Vector(_)) => write!(
+ Some(Type::CxxVector(_)) => write!(
out,
" /* Use RVO to convert to r-value and move construct */"
),
@@ -792,7 +792,7 @@
fn write_extern_arg(out: &mut OutFile, arg: &Var, types: &Types) {
match &arg.ty {
- Type::RustBox(ty) | Type::UniquePtr(ty) | Type::Vector(ty) => {
+ Type::RustBox(ty) | Type::UniquePtr(ty) | Type::CxxVector(ty) => {
write_type_space(out, &ty.inner);
write!(out, "*");
}
@@ -827,7 +827,7 @@
write_type(out, &ptr.inner);
write!(out, ">");
}
- Type::Vector(ty) => {
+ Type::CxxVector(ty) => {
write!(out, "::std::vector<");
write_type(out, &ty.inner);
write!(out, ">");
@@ -879,7 +879,7 @@
| Type::RustBox(_)
| Type::UniquePtr(_)
| Type::Str(_)
- | Type::Vector(_)
+ | Type::CxxVector(_)
| Type::RustVec(_)
| Type::SliceRefU8(_)
| Type::Fn(_) => write!(out, " "),
@@ -916,7 +916,7 @@
out.next_section();
write_unique_ptr(out, &ptr.inner, types);
}
- } else if let Type::Vector(ptr1) = &ptr.inner {
+ } else if let Type::CxxVector(ptr1) = &ptr.inner {
if let Type::Ident(inner) = &ptr1.inner {
if allow_vector(inner) {
out.next_section();
@@ -924,7 +924,7 @@
}
}
}
- } else if let Type::Vector(ptr) = ty {
+ } else if let Type::CxxVector(ptr) = ty {
if let Type::Ident(inner) = &ptr.inner {
if allow_vector(inner) {
out.next_section();