/third_party/rust/crates/cxx/src/ |
D | cxx_vector.rs | 24 pub struct CxxVector<T> { struct 35 impl<T> CxxVector<T> argument 88 let this = self as *const CxxVector<T> as *mut CxxVector<T>; in get_unchecked() constant 128 let this = self as *const CxxVector<T> as *mut CxxVector<T>; in as_slice() constant 197 v: &'a CxxVector<T>, 201 impl<'a, T> IntoIterator for &'a CxxVector<T> implementation 246 v: Pin<&'a mut CxxVector<T>>, 250 impl<'a, T> IntoIterator for Pin<&'a mut CxxVector<T>> 296 impl<T> Debug for CxxVector<T> implementation 337 fn __vector_size(v: &CxxVector<Self>) -> usize; in __vector_size() [all …]
|
D | lib.rs | 470 pub use crate::cxx_vector::CxxVector; 492 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}; 274 unsafe impl<T> UniquePtrTarget for CxxVector<T> implementation
|
/third_party/rust/crates/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 | 134 CxxVector\<T\> (C++ std::vector\<T\>) instead for collections of opaque C++
|
/third_party/rust/crates/cxx/tests/ui/ |
D | vector_autotraits.rs | 1 use cxx::CxxVector; 10 impl CxxVector<ThreadSafe> {} implementation 11 impl CxxVector<NotThreadSafe> {} impl 19 assert_send::<CxxVector<ffi::ThreadSafe>>(); in main() 20 assert_send::<CxxVector<ffi::NotThreadSafe>>(); in main()
|
D | vector_autotraits.stderr | 4 20 | assert_send::<CxxVector<ffi::NotThreadSafe>>(); 7 …= help: within `CxxVector<NotThreadSafe>`, the trait `Send` is not implemented for `*const cxx::vo… 25 note: required because it appears within the type `CxxVector<NotThreadSafe>` 28 | pub struct CxxVector<T> {
|
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>>;
|
/third_party/rust/crates/cxx/tests/ffi/ |
D | lib.rs | 18 use cxx::{type_id, CxxString, CxxVector, ExternType, SharedPtr, UniquePtr}; 110 fn c_return_unique_ptr_vector_u8() -> UniquePtr<CxxVector<u8>>; in c_return_unique_ptr_vector_u8() 111 fn c_return_unique_ptr_vector_f64() -> UniquePtr<CxxVector<f64>>; in c_return_unique_ptr_vector_f64() 112 fn c_return_unique_ptr_vector_string() -> UniquePtr<CxxVector<CxxString>>; in c_return_unique_ptr_vector_string() 113 fn c_return_unique_ptr_vector_shared() -> UniquePtr<CxxVector<Shared>>; in c_return_unique_ptr_vector_shared() 114 fn c_return_unique_ptr_vector_opaque() -> UniquePtr<CxxVector<C>>; in c_return_unique_ptr_vector_opaque() 115 fn c_return_ref_vector(c: &C) -> &CxxVector<u8>; in c_return_ref_vector() 116 fn c_return_mut_vector(c: Pin<&mut C>) -> Pin<&mut CxxVector<u8>>; in c_return_mut_vector() 145 fn c_take_unique_ptr_vector_u8(v: UniquePtr<CxxVector<u8>>); in c_take_unique_ptr_vector_u8() 146 fn c_take_unique_ptr_vector_f64(v: UniquePtr<CxxVector<f64>>); in c_take_unique_ptr_vector_f64() [all …]
|
/third_party/rust/crates/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 | 53 Type::CxxVector(ptr) => check_type_cxx_vector(cx, ptr), in do_typecheck() 150 } else if let Type::CxxVector(_) = &ptr.inner { in check_type_unique_ptr() 170 } else if let Type::CxxVector(_) = &ptr.inner { in check_type_shared_ptr() 191 } else if let Type::CxxVector(_) = &ptr.inner { in check_type_weak_ptr() 227 Type::CxxVector(_) => Some("CxxVector<...>".to_owned()), in check_type_ref() 522 | Type::CxxVector(ty) => { in check_api_impl() 644 Type::CxxVector(_) | Type::Fn(_) | Type::Void(_) => true, in is_unsized() 727 Type::CxxVector(_) => "C++ vector".to_owned(), in describe()
|
D | impls.rs | 55 Type::CxxVector(t) => t.hash(state), in hash() 77 (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 | 236 CxxVector(Box<Ty1>), enumerator
|
D | types.rs | 184 | ImplKey::CxxVector(ident) => { in collect()
|
/third_party/rust/crates/cxx/gen/src/ |
D | write.rs | 221 Type::CxxVector(_) => out.include.vector = true, in pick_includes_and_builtins() 1207 Type::RustBox(ty) | Type::UniquePtr(ty) | Type::CxxVector(ty) => { in write_extern_arg() 1254 Type::CxxVector(ty) => { in write_type() 1342 | Type::CxxVector(_) in write_space_after_type() 1355 CxxVector(&'a Ident), enumerator 1372 UniquePtr::CxxVector(element) => { in to_typename() 1393 UniquePtr::CxxVector(element) => { in to_mangled() 1416 ImplKey::CxxVector(ident) => write_cxx_vector(out, ident), in write_generic_instantiations() 1643 UniquePtr::CxxVector(_) => false, in write_unique_ptr_common() 1650 UniquePtr::CxxVector(_) => false, in write_unique_ptr_common() [all …]
|
/third_party/rust/crates/cxx/macro/src/ |
D | expand.rs | 111 ImplKey::CxxVector(ident) => { in expand() 1639 this: ::cxx::core::pin::Pin<&mut ::cxx::CxxVector<Self>>, in expand_cxx_vector() 1645 this: ::cxx::core::pin::Pin<&mut ::cxx::CxxVector<#elem #ty_generics>>, in expand_cxx_vector() 1652 this: ::cxx::core::pin::Pin<&mut ::cxx::CxxVector<Self>>, in expand_cxx_vector() 1658 this: ::cxx::core::pin::Pin<&mut ::cxx::CxxVector<#elem #ty_generics>>, in expand_cxx_vector() 1674 fn __vector_size(v: &::cxx::CxxVector<Self>) -> usize { in expand_cxx_vector() 1677 … fn __vector_size #impl_generics(_: &::cxx::CxxVector<#elem #ty_generics>) -> usize; in expand_cxx_vector() 1681 unsafe fn __get_unchecked(v: *mut ::cxx::CxxVector<Self>, pos: usize) -> *mut Self { in expand_cxx_vector() 1685 v: *mut ::cxx::CxxVector<#elem #ty_generics>, in expand_cxx_vector() 1701 …unsafe fn __unique_ptr_raw(raw: *mut ::cxx::CxxVector<Self>) -> ::cxx::core::mem::MaybeUninit<*mut… in expand_cxx_vector() [all …]
|
/third_party/rust/crates/cxx/book/src/ |
D | SUMMARY.md | 34 - [CxxVector\<T\> — std::vector\<T\>](binding/cxxvector.md)
|