Home
last modified time | relevance | path

Searched refs:trait (Results 1 – 25 of 452) sorted by relevance

12345678910>>...19

/external/rust/crates/async-trait/tests/ui/
Dlifetime-span.stderr7 error[E0107]: this trait takes 0 lifetime arguments but 1 lifetime argument was supplied
15 note: trait defined here, with 0 lifetime parameters
18 22 | pub trait Trait2 {
21 error[E0195]: lifetime parameters or bounds on method `method` do not match the trait declaration
25 | ---------------- lifetimes in impl do not match this method in trait
28 | ^^^^^^^^^^^^^ lifetimes do not match method in trait
30 error[E0195]: lifetime parameters or bounds on method `method` do not match the trait declaration
34 | ---------------- lifetimes in impl do not match this method in trait
37 | ^^^^^^^^^^^^^ lifetimes do not match method in trait
39 error[E0195]: lifetime parameters or bounds on method `method` do not match the trait declaration
[all …]
Dbare-trait-object.stderr1 error: trait objects without an explicit `dyn` are deprecated
2 --> $DIR/bare-trait-object.rs:11:16
8 --> $DIR/bare-trait-object.rs:1:9
/external/rust/crates/async-trait/
DREADME.md1 Async trait methods
4 …ub-dtolnay/async--trait-8da0cb?style=for-the-badge&labelColor=555555&logo=github" height="20">](ht…
5 …ields.io/crates/v/async-trait.svg?style=for-the-badge&color=fc8d62&logo=rust" height="20">](https:…
6trait-66c2a5?style=for-the-badge&labelColor=555555&logoColor=white&logo=data:image/svg+xml;base64,…
7 …b/workflow/status/dtolnay/async-trait/CI/master?style=for-the-badge" height="20">](https://github.…
11 fn in a trait produces the following error:
14 trait MyTrait {
20 error[E0706]: trait fns cannot be declared `async`
40 using async fn in a trait.
43 of traits and trait impls that contain async fn, and then they work.
[all …]
DMETADATA1 name: "async-trait"
2 description: "Type erasure for async trait methods"
6 value: "https://crates.io/crates/async-trait"
10 value: "https://static.crates.io/crates/async-trait/async-trait-0.1.50.crate"
DCargo.toml.orig2 name = "async-trait"
7 description = "Type erasure for async trait methods"
8 repository = "https://github.com/dtolnay/async-trait"
9 documentation = "https://docs.rs/async-trait"
DCargo.toml15 name = "async-trait"
18 description = "Type erasure for async trait methods"
19 documentation = "https://docs.rs/async-trait"
23 repository = "https://github.com/dtolnay/async-trait"
/external/rust/crates/pin-project/tests/ui/pinned_drop/
Dinvalid.stderr13 error: #[pinned_drop] may only be used on implementation for the `PinnedDrop` trait
16 … impl Drop for TraitImpl {} //~ ERROR may only be used on implementation for the `PinnedDrop` trait
19 error: #[pinned_drop] may only be used on implementation for the `PinnedDrop` trait
22 … | impl InherentImpl {} //~ ERROR may only be used on implementation for the `PinnedDrop` trait
31 error: implementing the trait `PinnedDrop` is not unsafe
43 error: not all trait items implemented, missing: `drop`
46 82 | impl PinnedDrop for Empty {} //~ ERROR not all trait items implemented, missing: `drop`
49 error: const `A` is not a member of trait `PinnedDrop`
52 89 | const A: u8 = 0; //~ ERROR const `A` is not a member of trait `PinnedDrop`
55 error: const `A` is not a member of trait `PinnedDrop`
[all …]
/external/rust/crates/downcast-rs/
DREADME.md8 container of user-defined types requires an open-ended type like a **trait
9 object**. Some applications may want to cast these trait objects back to the
13 `downcast-rs` adds this downcasting support to trait objects using only safe
32 To make a trait downcastable, make it extend either `downcast::Downcast` or
40 trait Trait: Downcast {}
43 // Also supports downcasting `Arc`-ed trait objects by extending `DowncastSync`
45 trait TraitSync: DowncastSync {}
49 trait TraitGeneric1<T>: Downcast {}
53 trait TraitGeneric2: Downcast { type G; type H; }
57 trait TraitGeneric3<T: Copy>: Downcast {
[all …]
/external/llvm-project/mlir/docs/
DTraits.md25 - The concrete class type that this trait was attached to.
27 - The type of the trait class that is being defined, for use with the
30 A derived trait class is expected to take a single template that corresponds to
31 the `ConcreteType`. An example trait definition is shown below:
40 verifying the concrete operation. The trait verifiers will currently always be
60 folding the concrete operation. The trait folders will only be invoked if
71 /// Override the 'foldTrait' hook to support trait based folding on the
87 /// Override the 'foldTrait' hook to support trait based folding on the
102 The above demonstrates the definition of a simple self-contained trait. It is
103 also often useful to provide some static parameters to the trait to control its
[all …]
/external/llvm-project/mlir/test/Dialect/Linalg/
Dfold-unit-trip-loops.mlir8 #trait = {
16 %0 = linalg.generic #trait
34 #trait = {
42 %0 = linalg.generic #trait
59 #trait = {
67 linalg.generic #trait
88 #trait = {
95 %0 = linalg.generic #trait
Ddrop-unit-extent-dims.mlir8 #trait = {
16 %0 = linalg.generic #trait
44 #trait = {
53 %0 = linalg.indexed_generic #trait
82 #trait = {
90 %0 = linalg.generic #trait
108 #trait = {
117 %0 = linalg.indexed_generic #trait
140 #trait = {
147 %0 = linalg.generic #trait
[all …]
/external/rust/crates/pin-project/tests/ui/unsafe_unpin/
Dconflict-unpin.stderr1 error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Foo<_, _>`:
10 …= note: upstream crates may add a new impl of trait `pin_project::UnsafeUnpin` for type `pin_proje…
12 error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Bar<_, _>`:
21 …= note: upstream crates may add a new impl of trait `pin_project::UnsafeUnpin` for type `pin_proje…
23 error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Baz<_, _>`:
32 …= note: upstream crates may add a new impl of trait `pin_project::UnsafeUnpin` for type `pin_proje…
/external/rust/crates/pin-project/tests/ui/unstable-features/
Dtrivial_bounds-feature-gate.stderr5 …| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Unpin` is not implemented for `Pha…
14 …| ^^^^^ the trait `Unpin` is not implemented for `Phanto…
20 …| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Unpin` is not implemented…
30 …| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ within `Inner`, the trait `Unpin` is not implemented …
40 …| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ within `Inner`, the trait `Unpin` is not imp…
/external/rust/crates/itertools/
DCHANGELOG.md7 - Add `HomogeneousTuple` trait (#389)
18 …- Added a [`.exactly_one()`](https://docs.rs/itertools/0.8.1/itertools/trait.Itertools.html#method…
20 …- [`.permutations(k)`](https://docs.rs/itertools/0.8.1/itertools/trait.Itertools.html#method.permu…
37 …- [`.combinations_with_replacement(k)`](https://docs.rs/itertools/0.8.1/itertools/trait.Itertools.…
54 …y existing [`.combinations(k)`](https://docs.rs/itertools/0.8.1/itertools/trait.Itertools.html#met…
66 …itertools/trait.Itertools.html#method.fold)-based internal iteration for the [`.intersperse()`](ht…
67trait.Itertools.html#method.dedup_by), [`.merge_by()`](https://docs.rs/itertools/0.8.1/itertools/t…
68 …- Improved the performance of [`.all_equal()`](https://docs.rs/itertools/0.8.1/itertools/trait.Ite…
69 …- Loosened the bounds on [`.partition_map()`](https://docs.rs/itertools/0.8.1/itertools/trait.Iter…
70 …ded from the [`.zip_longest()`](https://docs.rs/itertools/0.8.1/itertools/trait.Itertools.html#met…
[all …]
/external/dynamic_depth/internal/dynamic_depth/
Dcamera.cc23 string TraitToString(CameraTrait trait) { in TraitToString() argument
24 switch (trait) { in TraitToString()
53 CameraTrait trait = StringToTrait(trait_str); in ParseFields() local
90 params->trait = trait; in ParseFields()
190 CameraTrait Camera::GetTrait() const { return params_->trait; } in GetTrait()
198 if (params_->trait != CameraTrait::NONE) { in Serialize()
199 string trait_name = TraitToString(params_->trait); in Serialize()
/external/rust/crates/thiserror/tests/ui/
Dno-display.stderr1 error[E0599]: the method `as_display` exists for reference `&NoDisplay`, but its trait bounds were …
8 …| ^^^^^^^^^^^^^^^^^^ method cannot be called on `&NoDisplay` due to unsatisfied trait boun…
10 = note: the following trait bounds were not satisfied:
Dsource-struct-not-error.stderr1 error[E0599]: the method `as_dyn_error` exists for struct `NotError`, but its trait bounds were not…
12 | ^^^^^^ method cannot be called on `NotError` due to unsatisfied trait bounds
14 = note: the following trait bounds were not satisfied:
Dsource-enum-not-error.stderr1 error[E0599]: the method `as_dyn_error` exists for reference `&NotError`, but its trait bounds were…
11 | ^^^^^^ method cannot be called on `&NotError` due to unsatisfied trait bounds
13 = note: the following trait bounds were not satisfied:
/external/llvm-project/mlir/lib/TableGen/
DSideEffects.cpp29 StringRef trait = def->getValueAsString("interfaceTrait"); in getInterfaceTrait() local
31 return cppNamespace.empty() ? trait.str() in getInterfaceTrait()
32 : (cppNamespace + "::" + trait).str(); in getInterfaceTrait()
DOpTrait.cpp60 llvm::StringRef trait = def->getValueAsString("trait"); in getTrait() local
62 return cppNamespace.empty() ? trait.str() in getTrait()
63 : (cppNamespace + "::" + trait).str(); in getTrait()
/external/llvm-project/clang/test/SemaCXX/
Daccess-base-class.cpp99 struct trait : flag<sizeof(T)> {}; struct
101 template <class T, bool Inferred = trait<T>::value>
116 trait<b<Impossible<0>>>::value;
/external/rust/crates/pin-project/tests/ui/not_unpin/
Dconflict-unpin.stderr1 error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Foo<_, _>`:
10 error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Bar<_, _>`:
19 error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Baz<_, _>`:
/external/rust/crates/anyhow/tests/ui/
Dno-impl.stderr1 error[E0599]: the method `anyhow_kind` exists for reference `&Error`, but its trait bounds were not…
12 | ^^^^^^^^^^^^^^ method cannot be called on `&Error` due to unsatisfied trait bounds
14 = note: the following trait bounds were not satisfied:
/external/rust/crates/hashlink/
DCHANGELOG.md5 - Adjust trait bounds for `LinkedHashMap::retain`, `LinkedHashSet::default` to
7 - Adjust trait bounds for all `Debug` impls to be less strict (to match
9 - Adjust trait bounds for all `IntoIterator` impls to be less strict (to match
11 - Adjust trait bounds for `LruCache::with_hasher`, `LruCache::capacity`,
/external/rust/crates/pin-project/src/
Dlib.rs.orig87 /// A trait used for custom implementations of [`Unpin`].
89 /// This trait is used in conjunction with the `UnsafeUnpin` argument to
92 /// The Rust [`Unpin`] trait is safe to implement - by itself,
107 /// To help highlight this unsafety, the `UnsafeUnpin` trait is provided.
108 /// Implementing this trait is logically equivalent to implementing [`Unpin`] -
110 /// your `UnsafeUnpin` impl. However, this trait is `unsafe` - since your type
120 /// Since this trait is `unsafe`, impls of it will be detected by the
145 pub unsafe trait UnsafeUnpin {}
164 // An internal trait used for custom implementations of [`Drop`].
166 // **Do not call or implement this trait directly.**
[all …]

12345678910>>...19