Searched refs:RustVec (Results 1 – 16 of 16) sorted by relevance
/external/rust/cxx/src/symbols/ |
D | rust_vec.rs | 2 use crate::rust_vec::RustVec; 16 unsafe extern "C" fn __new(this: *mut RustVec<$ty>) { 17 ptr::write(this, RustVec { repr: Vec::new() }); 22 unsafe extern "C" fn __drop(this: *mut RustVec<$ty>) { 28 unsafe extern "C" fn __len(this: *const RustVec<$ty>) -> usize { 34 unsafe extern "C" fn __capacity(this: *const RustVec<$ty>) -> usize { 40 unsafe extern "C" fn __data(this: *const RustVec<$ty>) -> *const $ty { 46 unsafe extern "C" fn __reserve_total(this: *mut RustVec<$ty>, cap: usize) { 52 unsafe extern "C" fn __set_len(this: *mut RustVec<$ty>, len: usize) {
|
/external/rust/cxx/src/ |
D | rust_vec.rs | 7 pub struct RustVec<T> { struct 11 impl<T> RustVec<T> { argument 13 RustVec { repr: Vec::new() } in new() 17 RustVec { repr: v } in from() 21 unsafe { &*(v as *const Vec<T> as *const RustVec<T>) } in from_ref() constant 25 unsafe { &mut *(v as *mut Vec<T> as *mut RustVec<T>) } in from_mut() 64 impl RustVec<RustString> { impl
|
D | lib.rs | 461 pub use crate::rust_vec::RustVec;
|
/external/rust/cxx/macro/src/ |
D | expand.rs | 92 ImplKey::RustVec(ident) => { in expand() 426 } else if let Type::RustVec(_) = arg.ty { in expand_cxx_function_decl() 495 Type::RustVec(_) => quote!(#var.as_mut_ptr() as *const ::cxx::private::RustVec<_>), in expand_cxx_function_shim() 501 Type::RustVec(vec) if vec.inner == RustString => match ty.mutable { in expand_cxx_function_shim() 502 false => quote!(::cxx::private::RustVec::from_ref_vec_string(#var)), in expand_cxx_function_shim() 503 true => quote!(::cxx::private::RustVec::from_mut_vec_string(#var)), in expand_cxx_function_shim() 505 Type::RustVec(_) => match ty.mutable { in expand_cxx_function_shim() 506 false => quote!(::cxx::private::RustVec::from_ref(#var)), in expand_cxx_function_shim() 507 true => quote!(::cxx::private::RustVec::from_mut(#var)), in expand_cxx_function_shim() 599 Type::RustVec(vec) => { in expand_cxx_function_shim() [all …]
|
/external/rust/cxx/syntax/ |
D | instantiate.rs | 9 RustVec(NamedImplKey<'a>), enumerator 31 } else if let Type::RustVec(ty) = self { in impl_key() 33 return Some(ImplKey::RustVec(NamedImplKey::new(ty, ident))); in impl_key()
|
D | impls.rs | 52 Type::RustVec(t) => t.hash(state), in hash() 74 (Type::RustVec(lhs), Type::RustVec(rhs)) => lhs == rhs, in eq()
|
D | improper.rs | 26 | Type::RustVec(_) in determine_improper_ctype()
|
D | pod.rs | 26 | Type::RustVec(_) in is_guaranteed_pod()
|
D | visit.rs | 20 | Type::RustVec(ty) => visitor.visit_type(&ty.inner), in visit_type()
|
D | check.rs | 33 Type::RustVec(ty) => check_type_rust_vec(cx, ty), in do_typecheck() 492 | Type::RustVec(ty) in check_api_impl() 595 | Type::RustVec(_) in is_unsized() 669 Type::RustVec(_) => "Vec".to_owned(), in describe()
|
D | mod.rs | 203 RustVec(Box<Ty1>), enumerator
|
D | trivial.rs | 102 Type::RustVec(ty) => { in required_trivial_reasons()
|
D | types.rs | 169 | ImplKey::RustVec(ident) in collect()
|
D | tokens.rs | 28 | Type::RustVec(ty) => ty.to_tokens(tokens), in to_tokens()
|
D | parse.rs | 959 | Type::RustVec(ty) in parse_impl() 1168 return Ok(Type::RustVec(Box::new(Ty1 { in parse_type_path()
|
/external/rust/cxx/gen/src/ |
D | write.rs | 217 Type::RustVec(_) => out.builtin.rust_vec = true, in pick_includes_and_builtins() 674 } else if let Type::RustVec(_) = arg.ty { in write_cxx_function_shim() 774 } else if let Type::RustVec(_) = arg.ty { in write_cxx_function_shim() 1169 Type::RustVec(ty) => { in write_type() 1287 | Type::RustVec(_) in write_space_after_type() 1354 ImplKey::RustVec(ident) => write_rust_vec_extern(out, ident), in write_generic_instantiations() 1368 ImplKey::RustVec(ident) => write_rust_vec_impl(out, ident), in write_generic_instantiations()
|