Home
last modified time | relevance | path

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

12

/external/rust/cxx/src/
Dcxx_vector.rs25 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 …]
Dlib.rs426 pub use crate::cxx_vector::CxxVector;
447 pub type Vector<T> = CxxVector<T>;
Dvector.rs9 pub use cxx::CxxVector;
Dunique_ptr.rs1 use crate::cxx_vector::{CxxVector, VectorElement};
277 unsafe impl<T> UniquePtrTarget for CxxVector<T> implementation
/external/rust/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.md132 CxxVector\<T\> (C++ std::vector\<T\>) instead for collections of opaque C++
/external/rust/cxx/tests/ffi/
Dlib.rs18 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/
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.rs37 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()
Dimpls.rs53 Type::CxxVector(t) => t.hash(state), in hash()
75 (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.rs210 CxxVector(Box<Ty1>), enumerator
Dtypes.rs173 | ImplKey::CxxVector(ident) => { in collect()
Dtokens.rs27 | Type::CxxVector(ty) in to_tokens()
/external/rust/cxx/tests/ui/
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>>;
/external/rust/cxx/gen/src/
Dwrite.rs221 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/
Dexpand.rs104 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/
DSUMMARY.md34 - [CxxVector\<T\> &mdash; std::vector\<T\>](binding/cxxvector.md)
Dbindings.md22 <tr><td style="padding:3px 6px"><b><a href="binding/cxxvector.md">CxxVector&lt;T&gt;</a></b></td><t…

12