2 Commits

Author SHA1 Message Date
Quaternions 4e390d9981 clippy fixes 2026-06-10 20:40:26 -07:00
Quaternions b34373750b iterators for Tableau and Foundation 2026-06-10 20:39:05 -07:00
+12 -12
View File
@@ -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 {