/external/rust/cxx/src/ |
D | cxx_vector.rs | 25 pub struct CxxVector<T> { struct 30 impl<T> CxxVector<T> implementation 83 let this = self as *const CxxVector<T> as *mut CxxVector<T>; in get_unchecked() constant 119 let this = self as *const CxxVector<T> as *mut CxxVector<T>; in as_slice() constant 155 v: &'a CxxVector<T>, 159 impl<'a, T> IntoIterator for &'a CxxVector<T> implementation 204 v: Pin<&'a mut CxxVector<T>>, 208 impl<'a, T> IntoIterator for Pin<&'a mut CxxVector<T>> 254 impl<T> Debug for CxxVector<T> implementation 295 fn __vector_size(v: &CxxVector<Self>) -> usize; in __vector_size() [all …]
|
D | lib.rs | 426 pub use crate::cxx_vector::CxxVector; 447 pub type Vector<T> = CxxVector<T>;
|
D | vector.rs | 9 pub use cxx::CxxVector;
|
D | unique_ptr.rs | 1 use crate::cxx_vector::{CxxVector, VectorElement}; 277 unsafe impl<T> UniquePtrTarget for CxxVector<T> implementation
|
/external/rust/cxx/book/src/binding/ |
D | cxxvector.md | 4 The Rust binding of std::vector\<T\> is called **[`CxxVector<T>`]**. See the 7 [`CxxVector<T>`]: https://docs.rs/cxx/*/cxx/struct.CxxVector.html 11 Rust code can never obtain a CxxVector by value. Instead in Rust code we will 13 &CxxVector\<T\> or UniquePtr\<CxxVector\<T\>\>. 15 CxxVector\<T\> does not support T being an opaque Rust type. You should use a 21 This program involves Rust code converting a `CxxVector<CxxString>` (i.e. 29 use cxx::{CxxString, CxxVector}; 34 fn f(vec: &CxxVector<CxxString>); 38 fn f(vec: &CxxVector<CxxString>) {
|
D | cxxstring.md | 52 fn getArray(self: &Json) -> &CxxVector<Json>;
|
D | vec.md | 132 CxxVector\<T\> (C++ std::vector\<T\>) instead for collections of opaque C++
|
/external/rust/cxx/tests/ffi/ |
D | lib.rs | 18 use cxx::{CxxString, CxxVector, SharedPtr, UniquePtr}; 107 fn c_return_unique_ptr_vector_u8() -> UniquePtr<CxxVector<u8>>; in c_return_unique_ptr_vector_u8() 108 fn c_return_unique_ptr_vector_f64() -> UniquePtr<CxxVector<f64>>; in c_return_unique_ptr_vector_f64() 109 fn c_return_unique_ptr_vector_string() -> UniquePtr<CxxVector<CxxString>>; in c_return_unique_ptr_vector_string() 110 fn c_return_unique_ptr_vector_shared() -> UniquePtr<CxxVector<Shared>>; in c_return_unique_ptr_vector_shared() 111 fn c_return_unique_ptr_vector_opaque() -> UniquePtr<CxxVector<C>>; in c_return_unique_ptr_vector_opaque() 112 fn c_return_ref_vector(c: &C) -> &CxxVector<u8>; in c_return_ref_vector() 113 fn c_return_mut_vector(c: Pin<&mut C>) -> Pin<&mut CxxVector<u8>>; in c_return_mut_vector() 141 fn c_take_unique_ptr_vector_u8(v: UniquePtr<CxxVector<u8>>); in c_take_unique_ptr_vector_u8() 142 fn c_take_unique_ptr_vector_f64(v: UniquePtr<CxxVector<f64>>); in c_take_unique_ptr_vector_f64() [all …]
|
/external/rust/cxx/syntax/ |
D | instantiate.rs | 13 CxxVector(NamedImplKey<'a>), enumerator 47 } else if let Type::CxxVector(ty) = self { in impl_key() 49 return Some(ImplKey::CxxVector(NamedImplKey::new(ty, ident))); in impl_key()
|
D | check.rs | 37 Type::CxxVector(ptr) => check_type_cxx_vector(cx, ptr), in do_typecheck() 135 } else if let Type::CxxVector(_) = &ptr.inner { in check_type_unique_ptr() 155 } else if let Type::CxxVector(_) = &ptr.inner { in check_type_shared_ptr() 176 } else if let Type::CxxVector(_) = &ptr.inner { in check_type_weak_ptr() 212 Type::CxxVector(_) => Some("CxxVector<...>".to_owned()), in check_type_ref() 496 | Type::CxxVector(ty) => { in check_api_impl() 593 Type::CxxVector(_) | Type::Fn(_) | Type::Void(_) => true, in is_unsized() 676 Type::CxxVector(_) => "C++ vector".to_owned(), in describe()
|
D | impls.rs | 53 Type::CxxVector(t) => t.hash(state), in hash() 75 (Type::CxxVector(lhs), Type::CxxVector(rhs)) => lhs == rhs, in eq()
|
D | improper.rs | 31 Type::UniquePtr(_) | Type::SharedPtr(_) | Type::WeakPtr(_) | Type::CxxVector(_) => { in determine_improper_ctype()
|
D | visit.rs | 19 | Type::CxxVector(ty) in visit_type()
|
D | pod.rs | 30 | Type::CxxVector(_) in is_guaranteed_pod()
|
D | mod.rs | 210 CxxVector(Box<Ty1>), enumerator
|
D | types.rs | 173 | ImplKey::CxxVector(ident) => { in collect()
|
D | tokens.rs | 27 | Type::CxxVector(ty) in to_tokens()
|
/external/rust/cxx/tests/ui/ |
D | pin_mut_opaque.stderr | 13 error: mutable reference to C++ type requires a pin -- use Pin<&mut CxxVector<...>> 16 9 | fn v(v: &mut CxxVector<u8>);
|
D | ptr_unsupported.rs | 8 fn get_vector_of_ptr() -> UniquePtr<CxxVector<*mut C>>; in get_vector_of_ptr()
|
D | pin_mut_opaque.rs | 9 fn v(v: &mut CxxVector<u8>); in v()
|
D | ptr_unsupported.stderr | 16 8 | fn get_vector_of_ptr() -> UniquePtr<CxxVector<*mut C>>;
|
/external/rust/cxx/gen/src/ |
D | write.rs | 221 Type::CxxVector(_) => out.include.vector = true, in pick_includes_and_builtins() 1142 Type::RustBox(ty) | Type::UniquePtr(ty) | Type::CxxVector(ty) => { in write_extern_arg() 1189 Type::CxxVector(ty) => { in write_type() 1286 | Type::CxxVector(_) in write_space_after_type() 1299 CxxVector(&'a Ident), enumerator 1316 UniquePtr::CxxVector(element) => { in to_typename() 1337 UniquePtr::CxxVector(element) => element.to_mangled(types).prefix_with("std$vector$"), in to_mangled() 1358 ImplKey::CxxVector(ident) => write_cxx_vector(out, ident), in write_generic_instantiations() 1574 UniquePtr::CxxVector(_) => false, in write_unique_ptr_common() 1581 UniquePtr::CxxVector(_) => false, in write_unique_ptr_common() [all …]
|
/external/rust/cxx/macro/src/ |
D | expand.rs | 104 ImplKey::CxxVector(ident) => { in expand() 1521 fn __vector_size(v: &::cxx::CxxVector<Self>) -> usize { in expand_cxx_vector() 1524 … fn __vector_size #impl_generics(_: &::cxx::CxxVector<#elem #ty_generics>) -> usize; in expand_cxx_vector() 1529 unsafe fn __get_unchecked(v: *mut ::cxx::CxxVector<Self>, pos: usize) -> *mut Self { in expand_cxx_vector() 1532 …fn __get_unchecked #impl_generics(_: *mut ::cxx::CxxVector<#elem #ty_generics>, _: usize) -> *mut … in expand_cxx_vector() 1547 … unsafe fn __unique_ptr_raw(raw: *mut ::cxx::CxxVector<Self>) -> *mut ::std::ffi::c_void { in expand_cxx_vector() 1550 …raw #impl_generics(this: *mut *mut ::std::ffi::c_void, raw: *mut ::cxx::CxxVector<#elem #ty_generi… in expand_cxx_vector() 1557 … unsafe fn __unique_ptr_get(repr: *mut ::std::ffi::c_void) -> *const ::cxx::CxxVector<Self> { in expand_cxx_vector() 1560 …t #impl_generics(this: *const *mut ::std::ffi::c_void) -> *const ::cxx::CxxVector<#elem #ty_generi… in expand_cxx_vector() 1565 … unsafe fn __unique_ptr_release(mut repr: *mut ::std::ffi::c_void) -> *mut ::cxx::CxxVector<Self> { in expand_cxx_vector() [all …]
|
/external/rust/cxx/book/src/ |
D | SUMMARY.md | 34 - [CxxVector\<T\> — std::vector\<T\>](binding/cxxvector.md)
|
D | bindings.md | 22 <tr><td style="padding:3px 6px"><b><a href="binding/cxxvector.md">CxxVector<T></a></b></td><t…
|