Derive traits for State.
This commit is contained in:
parent
39478e8ab1
commit
62e210fb3c
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@
|
|||
/// This enum is returned from the `Generator::resume` method and indicates the
|
||||
/// possible return values of a generator. Currently this corresponds to either
|
||||
/// a suspension point (`Yielded`) or a termination point (`Complete`).
|
||||
#[derive(Debug)]
|
||||
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
|
||||
#[cfg_attr(not(stage0), lang = "generator_state")]
|
||||
#[unstable(feature = "generator_trait", issue = "43122")]
|
||||
pub enum State<Y, R> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue