create iterator structure
parent
9b2845ca51
commit
58e5efa58d
@ -0,0 +1,18 @@
|
||||
use crate::shapes::Shape;
|
||||
|
||||
/// An iterator containing the shapes to display
|
||||
pub struct CircleShapes;
|
||||
|
||||
impl CircleShapes {
|
||||
pub fn new() -> CircleShapes {
|
||||
CircleShapes {}
|
||||
}
|
||||
}
|
||||
|
||||
impl Iterator for CircleShapes {
|
||||
type Item = Shape;
|
||||
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
None
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue