You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-3
Original file line number
Diff line number
Diff line change
@@ -12,13 +12,14 @@ trait LocalIntFactory {
12
12
asyncfnmake(&self) ->i32;
13
13
// ..or..
14
14
fnstream(&self) ->implIterator<Item=i32>;
15
-
fncall(&self) ->u32;
16
15
}
17
16
```
18
17
19
-
Which creates a new `IntFactory: Send` trait and additionally bounds `IntFactory::make(): Send` and `IntFactory::stream(): Send`. Ordinary methods are not affected.
18
+
Which creates a new `IntFactory: Send` trait and additionally bounds `IntFactory::make(): Send` and `IntFactory::stream(): Send`. Implementers of the trait can choose to implement the variant instead of the original trait.
20
19
21
-
Implementers of the trait can choose to implement the variant instead of the original trait. The macro creates a blanket impl which ensures that any type which implements the variant also implements the original trait.
20
+
For more details, see the docs for [`trait_variant::make`].
0 commit comments