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