This commit is contained in:
Janggun Lee
2024-09-02 09:23:41 +09:00
parent e9f2a5c5fc
commit aa743f634e
3 changed files with 24 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ enum Yielded<T> {
///
/// Reference:
/// - [Python generator](https://python-reference.readthedocs.io/en/latest/docs/generator/)
#[allow(missing_debug_implementations)]
#[derive(Debug)]
pub struct Generator<T, S> {
state: S,
f: fn(&mut S) -> Yielded<T>,