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

No files matched your search

+1 -1
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>,