Home
last modified time | relevance | path

Searched refs:RustBox (Results 1 – 13 of 13) sorted by relevance

/third_party/rust/crates/cxx/syntax/
Dinstantiate.rs8 RustBox(NamedImplKey<'a>), enumerator
27 if let Type::RustBox(ty) = self { in impl_key()
29 return Some(ImplKey::RustBox(NamedImplKey::new(ty, ident))); in impl_key()
Dimpls.rs47 Type::RustBox(t) => t.hash(state), in hash()
70 (Type::RustBox(lhs), Type::RustBox(rhs)) => lhs == rhs, in eq()
Dimproper.rs25 Type::RustBox(_) in determine_improper_ctype()
Dvisit.rs15 Type::RustBox(ty) in visit_type()
Dpod.rs25 Type::RustBox(_) in is_guaranteed_pod()
Dtypes.rs179 ImplKey::RustBox(ident) in collect()
246 Type::RustBox(_) | Type::UniquePtr(_) => false, in needs_indirect_abi()
Dcheck.rs48 Type::RustBox(ptr) => check_type_box(cx, ptr), in do_typecheck()
517 Type::RustBox(ty) in check_api_impl()
645 Type::RustBox(_) in is_unsized()
719 Type::RustBox(_) => "Box".to_owned(), in describe()
Dmod.rs228 RustBox(Box<Ty1>), enumerator
Dtrivial.rs97 Type::RustBox(ty) => { in required_trivial_reasons()
Dtokens.rs26 Type::RustBox(ty) in to_tokens()
Dparse.rs1067 Type::RustBox(ty) in parse_impl()
1270 return Ok(Type::RustBox(Box::new(Ty1 { in parse_type_path()
/third_party/rust/crates/cxx/gen/src/
Dwrite.rs216 Type::RustBox(_) => out.builtin.rust_box = true, in pick_includes_and_builtins()
823 if let Type::RustBox(_) = &arg.ty { in write_cxx_function_shim()
849 Some(Type::RustBox(_)) => write!(out, ".into_raw()"), in write_cxx_function_shim()
1054 Type::RustBox(_) => { in write_rust_function_shim_impl()
1095 Type::RustBox(_) => write!(out, ".into_raw()"), in write_rust_function_shim_impl()
1118 if let Type::RustBox(_) | Type::UniquePtr(_) | Type::Str(_) | Type::SliceRef(_) = ret { in write_rust_function_shim_impl()
1159 Type::RustBox(ty) | Type::UniquePtr(ty) => { in write_indirect_return_type()
1177 Type::RustBox(_) | Type::UniquePtr(_) | Type::Ref(_) => {} in write_indirect_return_type_space()
1185 Some(Type::RustBox(ty)) | Some(Type::UniquePtr(ty)) => { in write_extern_return_type_space()
1207 Type::RustBox(ty) | Type::UniquePtr(ty) | Type::CxxVector(ty) => { in write_extern_arg()
[all …]
/third_party/rust/crates/cxx/macro/src/
Dexpand.rs96 ImplKey::RustBox(ident) => { in expand()
531 Type::RustBox(ty) => { in expand_cxx_function_shim()
652 Type::RustBox(ty) => { in expand_cxx_function_shim()
994 Type::RustBox(_) => quote_spanned!(span=> ::cxx::alloc::boxed::Box::from_raw(#var)), in expand_rust_function_shim_impl()
1055 Type::RustBox(_) => Some(quote_spanned!(span=> ::cxx::alloc::boxed::Box::into_raw)), in expand_rust_function_shim_impl()
1754 Type::RustBox(ty) | Type::UniquePtr(ty) => { in expand_extern_type()