mirror of
https://github.com/kmc7468/cs220.git
synced 2025-12-16 15:08:45 +00:00
Update
This commit is contained in:
@@ -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