mirror of
https://github.com/kmc7468/cs220.git
synced 2026-11-04 08:10:33 +09:00
Update
This commit is contained in:
1 parent
e9f2a5c5fc
commit
aa743f634e
3 files changed
+24
-4
No files matched your search
@@ -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>,
|
||||
|
||||
Reference in new issue
Block a user