pub trait SafeGeneratorTrait<T>: Send + Sync {
// Required methods
fn next_with(&self, selfish: &SafeGenerator<T>) -> Option<T>;
fn done(&self) -> bool;
fn close(&self);
}pub trait SafeGeneratorTrait<T>: Send + Sync {
// Required methods
fn next_with(&self, selfish: &SafeGenerator<T>) -> Option<T>;
fn done(&self) -> bool;
fn close(&self);
}