Compare commits
2 Commits
master
..
4e390d9981
| Author | SHA1 | Date | |
|---|---|---|---|
| 4e390d9981 | |||
| b34373750b |
+12
-12
@@ -175,16 +175,16 @@ impl TableauIter {
|
||||
}
|
||||
}
|
||||
impl Default for TableauIter {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
impl Iterator for TableauIter {
|
||||
type Item = Tableau;
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
let tableau = self.tableau?;
|
||||
self.tableau = tableau.next();
|
||||
Some(tableau)
|
||||
let t = self.tableau?;
|
||||
self.tableau = t.next();
|
||||
Some(t)
|
||||
}
|
||||
}
|
||||
impl IntoIterator for Tableau {
|
||||
@@ -227,16 +227,16 @@ impl FoundationIter {
|
||||
}
|
||||
}
|
||||
impl Default for FoundationIter {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
impl Iterator for FoundationIter {
|
||||
type Item = Foundation;
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
let foundation = self.foundation?;
|
||||
self.foundation = foundation.next();
|
||||
Some(foundation)
|
||||
let t = self.foundation?;
|
||||
self.foundation = t.next();
|
||||
Some(t)
|
||||
}
|
||||
}
|
||||
impl IntoIterator for Foundation {
|
||||
|
||||
Reference in New Issue
Block a user