Home
last modified time | relevance | path

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

12

/third_party/rust/crates/cxx/tests/ui/
Draw_ident_namespace.rs1 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 {
Dslice_of_type_alias.rs1 use cxx::{type_id, ExternType};
20 unsafe impl ExternType for ElementTrivial {
25 unsafe impl ExternType for ElementOpaque {
Ddeny_missing_docs.rs70 use cxx::{type_id, ExternType};
75 unsafe impl ExternType for UndocumentedTypeAlias {
80 unsafe impl ExternType for DocumentedTypeAlias {
Dslice_of_type_alias.stderr1 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>() {}
Dunique_ptr_to_opaque.stderr1 error[E0271]: type mismatch resolving `<C as ExternType>::Kind == Trivial`
5 …| ------------------- ^^^^^^^^^^^^^^^^^^^ type mismatch resolving `<C as ExternType>::Kind == …
17 | T: ExternType<Kind = Trivial>,
Dvec_opaque.stderr7 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>() {}
Dwrong_type_id.stderr1 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>() {}
Dunique_ptr_to_opaque.rs6 unsafe impl cxx::ExternType for C {
Dslice_unsupported.stderr7 error: needs a cxx::ExternType impl in order to be used as a slice element in &mut [Opaque]
Dpin_mut_opaque.stderr19 error: needs a cxx::ExternType impl in order to be used as a non-pinned mutable reference in signat…
Dby_value_not_supported.stderr19 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/
Dextern_type.rs101 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
Dcxx_vector.rs4 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()
Dshared_ptr.rs5 use crate::ExternType;
41 T: ExternType<Kind = Trivial>, in new()
Dunique_ptr.rs5 use crate::ExternType;
40 T: ExternType<Kind = Trivial>, in new()
/third_party/rust/crates/cxx/syntax/
Dderive.rs17 ExternType, enumerator
34 "ExternType" => Trait::ExternType, in from()
62 Trait::ExternType => "ExternType", in as_ref()
Dmod.rs55 CxxType(ExternType),
57 RustType(ExternType),
80 pub struct ExternType { struct
Dcheck.rs5 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()
Dtokens.rs3 Array, Atom, Derive, Enum, EnumRepr, ExternFn, ExternType, Impl, Lifetimes, NamedType, Ptr,
176 impl ToTokens for ExternType { implementation
Dtypes.rs10 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/
Dlib.rs18 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/
Dextern-c++.md180 `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/
Dnested.rs57 use crate::syntax::{Api, Doc, ExternType, ForeignName, Lang, Lifetimes, Pair};
131 Api::CxxType(ExternType { in make_api()
/third_party/rust/crates/cxx/macro/src/
Dexpand.rs10 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 …]
Dderive.rs19 Trait::ExternType => unreachable!(), in expand_struct()
63 Trait::ExternType => unreachable!(), in expand_enum()

12