/third_party/rust/crates/cxx/tests/ui/ |
D | raw_ident_namespace.rs | 1 use cxx::{type_id, ExternType}; 6 unsafe impl ExternType for QuotedRaw { 14 unsafe impl ExternType for QuotedKeyword { 22 unsafe impl ExternType for UnquotedRaw { 30 unsafe impl ExternType for UnquotedKeyword {
|
D | slice_of_type_alias.rs | 1 use cxx::{type_id, ExternType}; 20 unsafe impl ExternType for ElementTrivial { 25 unsafe impl ExternType for ElementOpaque {
|
D | deny_missing_docs.rs | 70 use cxx::{type_id, ExternType}; 75 unsafe impl ExternType for UndocumentedTypeAlias { 80 unsafe impl ExternType for DocumentedTypeAlias {
|
D | slice_of_type_alias.stderr | 1 error[E0271]: type mismatch resolving `<ElementOpaque as ExternType>::Kind == Trivial` 5 …| ^^^^^^^^^^^^^ type mismatch resolving `<ElementOpaque as ExternType>::Kind == Trivi… 15 | pub fn verify_extern_kind<T: ExternType<Kind = Kind>, Kind: self::Kind>() {}
|
D | unique_ptr_to_opaque.stderr | 1 error[E0271]: type mismatch resolving `<C as ExternType>::Kind == Trivial` 5 …| ------------------- ^^^^^^^^^^^^^^^^^^^ type mismatch resolving `<C as ExternType>::Kind == … 17 | T: ExternType<Kind = Trivial>,
|
D | vec_opaque.stderr | 7 error: needs a cxx::ExternType impl in order to be used as a vector element in Vec<Job> 13 error[E0271]: type mismatch resolving `<Job as ExternType>::Kind == Trivial` 22 | pub fn verify_extern_kind<T: ExternType<Kind = Kind>, Kind: self::Kind>() {}
|
D | wrong_type_id.stderr | 1 error[E0271]: type mismatch resolving `<StringPiece as ExternType>::Id == (f, o, l, l, y, (), B, y,… 12 | pub fn verify_extern_type<T: ExternType<Id = Id>, Id>() {}
|
D | unique_ptr_to_opaque.rs | 6 unsafe impl cxx::ExternType for C {
|
D | slice_unsupported.stderr | 7 error: needs a cxx::ExternType impl in order to be used as a slice element in &mut [Opaque]
|
D | pin_mut_opaque.stderr | 19 error: needs a cxx::ExternType impl in order to be used as a non-pinned mutable reference in signat…
|
D | by_value_not_supported.stderr | 19 error: needs a cxx::ExternType impl in order to be used as a field of `S`, argument of `f` or retur…
|
/third_party/rust/crates/cxx/src/ |
D | extern_type.rs | 101 pub unsafe trait ExternType { interface 184 pub fn verify_extern_type<T: ExternType<Id = Id>, Id>() {} in verify_extern_type() 187 pub fn verify_extern_kind<T: ExternType<Kind = Kind>, Kind: self::Kind>() {} in verify_extern_kind() 193 unsafe impl ExternType for $ty { impl
|
D | cxx_vector.rs | 4 use crate::extern_type::ExternType; 116 T: ExternType<Kind = Trivial>, in as_slice() 138 T: ExternType<Kind = Trivial>, in as_mut_slice() 166 T: ExternType<Kind = Trivial>, in push() 179 T: ExternType<Kind = Trivial>, in pop()
|
D | shared_ptr.rs | 5 use crate::ExternType; 41 T: ExternType<Kind = Trivial>, in new()
|
D | unique_ptr.rs | 5 use crate::ExternType; 40 T: ExternType<Kind = Trivial>, in new()
|
/third_party/rust/crates/cxx/syntax/ |
D | derive.rs | 17 ExternType, enumerator 34 "ExternType" => Trait::ExternType, in from() 62 Trait::ExternType => "ExternType", in as_ref()
|
D | mod.rs | 55 CxxType(ExternType), 57 RustType(ExternType), 80 pub struct ExternType { struct
|
D | check.rs | 5 error, ident, trivial, Api, Array, Enum, ExternFn, ExternType, Impl, Lang, Lifetimes, 329 if derive.what == Trait::ExternType { in check_api_struct() 362 if derive.what == Trait::Default || derive.what == Trait::ExternType { in check_api_enum() 369 fn check_api_type(cx: &mut Check, ety: &ExternType) { in check_api_type() argument 374 if derive.what == Trait::ExternType && ety.lang == Lang::Rust { in check_api_type()
|
D | tokens.rs | 3 Array, Atom, Derive, Enum, EnumRepr, ExternFn, ExternType, Impl, Lifetimes, NamedType, Ptr, 176 impl ToTokens for ExternType { implementation
|
D | types.rs | 10 toposort, Api, Atom, Enum, EnumRepr, ExternType, Impl, Lifetimes, Pair, Struct, Type, TypeAlias, 22 pub untrusted: UnorderedMap<&'a Ident, &'a ExternType>,
|
/third_party/rust/crates/cxx/tests/ffi/ |
D | lib.rs | 18 use cxx::{type_id, CxxString, CxxVector, ExternType, SharedPtr, UniquePtr}; 229 #[derive(ExternType)] 344 use cxx::{type_id, CxxString, ExternType}; 359 use cxx::{type_id, CxxString, ExternType}; 367 unsafe impl ExternType for F { 378 unsafe impl ExternType for G { 383 unsafe impl ExternType for D { 388 unsafe impl ExternType for E { 426 unsafe impl ExternType for Buffer {
|
/third_party/rust/crates/cxx/book/src/ |
D | extern-c++.md | 180 `crate::existing::MyType`'s implementation of [`ExternType`], which is a trait 184 [`ExternType`]: https://docs.rs/cxx/*/cxx/trait.ExternType.html 186 `ExternType` serves the following two related use cases. 225 Handwritten `ExternType` impls make it possible to plug in a data structure 228 By writing the unsafe `ExternType` impl, the programmer asserts that the C++ 235 use cxx::{type_id, ExternType}; 237 unsafe impl ExternType for folly_sys::StringPiece { 258 The `ExternType::Id` associated type encodes a type-level representation of the 262 The `ExternType::Kind` associated type will always be either 274 If you believe your C++ type reflected by the ExternType impl is indeed fine to [all …]
|
/third_party/rust/crates/cxx/gen/src/ |
D | nested.rs | 57 use crate::syntax::{Api, Doc, ExternType, ForeignName, Lang, Lifetimes, Pair}; 131 Api::CxxType(ExternType { in make_api()
|
/third_party/rust/crates/cxx/macro/src/ |
D | expand.rs | 10 self, check, mangle, Api, Doc, Enum, ExternFn, ExternType, Impl, Lifetimes, Pair, Signature, 187 unsafe impl #generics ::cxx::ExternType for #ident #generics { in expand_struct() 363 unsafe impl ::cxx::ExternType for #ident { in expand_enum() 374 fn expand_cxx_type(ety: &ExternType) -> TokenStream { in expand_cxx_type() 405 unsafe impl #generics ::cxx::ExternType for #ident #generics { in expand_cxx_type() 414 fn expand_cxx_type_assert_pinned(ety: &ExternType, types: &Types) -> TokenStream { in expand_cxx_type_assert_pinned() argument 818 fn expand_rust_type_import(ety: &ExternType) -> TokenStream { in expand_rust_type_import() 827 fn expand_rust_type_impl(ety: &ExternType) -> TokenStream { in expand_rust_type_impl() 839 if derive.what == Trait::ExternType { in expand_rust_type_impl() 843 unsafe impl #generics ::cxx::ExternType for #ident #generics { in expand_rust_type_impl() [all …]
|
D | derive.rs | 19 Trait::ExternType => unreachable!(), in expand_struct() 63 Trait::ExternType => unreachable!(), in expand_enum()
|