Home
last modified time | relevance | path

Searched refs:CxxVector (Results 1 – 25 of 30) sorted by relevance

12

/third_party/rust/crates/cxx/src/
Dcxx_vector.rs24 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 …]
Dlib.rs470 pub use crate::cxx_vector::CxxVector;
492 pub type Vector<T> = CxxVector<T>;
Dvector.rs9 pub use cxx::CxxVector;
Dunique_ptr.rs1 use crate::cxx_vector::{CxxVector, VectorElement};
274 unsafe impl<T> UniquePtrTarget for CxxVector<T> implementation
/third_party/rust/crates/cxx/book/src/binding/
Dcxxvector.md4 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>) {
Dcxxstring.md52 fn getArray(self: &Json) -> &CxxVector<Json>;
Dvec.md134 CxxVector\<T\> (C++ std::vector\<T\>) instead for collections of opaque C++
/third_party/rust/crates/cxx/tests/ui/
Dvector_autotraits.rs1 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()
Dvector_autotraits.stderr4 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> {
Dpin_mut_opaque.stderr13 error: mutable reference to C++ type requires a pin -- use Pin<&mut CxxVector<...>>
16 9 | fn v(v: &mut CxxVector<u8>);
Dptr_unsupported.rs8 fn get_vector_of_ptr() -> UniquePtr<CxxVector<*mut C>>; in get_vector_of_ptr()
Dpin_mut_opaque.rs9 fn v(v: &mut CxxVector<u8>); in v()
Dptr_unsupported.stderr16 8 | fn get_vector_of_ptr() -> UniquePtr<CxxVector<*mut C>>;
/third_party/rust/crates/cxx/tests/ffi/
Dlib.rs18 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/
Dinstantiate.rs13 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()
Dcheck.rs53 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()
Dimpls.rs55 Type::CxxVector(t) => t.hash(state), in hash()
77 (Type::CxxVector(lhs), Type::CxxVector(rhs)) => lhs == rhs, in eq()
Dimproper.rs31 Type::UniquePtr(_) | Type::SharedPtr(_) | Type::WeakPtr(_) | Type::CxxVector(_) => { in determine_improper_ctype()
Dvisit.rs19 | Type::CxxVector(ty) in visit_type()
Dpod.rs30 | Type::CxxVector(_) in is_guaranteed_pod()
Dmod.rs236 CxxVector(Box<Ty1>), enumerator
Dtypes.rs184 | ImplKey::CxxVector(ident) => { in collect()
/third_party/rust/crates/cxx/gen/src/
Dwrite.rs221 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/
Dexpand.rs111 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/
DSUMMARY.md34 - [CxxVector\<T\> &mdash; std::vector\<T\>](binding/cxxvector.md)

12