simon-git: tilings-rs (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Wed Jun 17 08:16:47 BST 2026


TL;DR:
  e3f5ecb Update to itertools 0.15.0.

Repository:     https://git.tartarus.org/simon/tilings-rs.git
On the web:     https://git.tartarus.org/?p=simon/tilings-rs.git
Branch updated: main
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2026-06-17 08:16:47

commit e3f5ecbc2900600fa6e96a384e32530b7d8e6f18
web diff https://git.tartarus.org/?p=simon/tilings-rs.git;a=commitdiff;h=e3f5ecbc2900600fa6e96a384e32530b7d8e6f18;hp=ed2dd2b65e5272dfa925ea3d3cd763199299f5c4
Author: Simon Tatham <anakin at pobox.com>
Date:   Wed Jun 17 08:03:10 2026 +0100

    Update to itertools 0.15.0.
    
    This version of the crate introduces the .circular_array_windows()
    method (as it happens, contributed by me), which replaces the
    .cyclic_pairs() method I implemented in src/common.rs.
    
    .circular_array_windows() returns an array whereas .cyclic_pairs()
    returned a tuple, so there were a small number of knock-on type
    changes, but not many, and not far-reaching.
    
    The main new thing in .circular_array_windows() is that it doesn't
    demand that the input iterator implement any additional traits like
    Clone, which makes it much more friendly to using in generic code than
    itertools's previous .circular_tuple_windows(). That's why I had my
    own .cyclic_pairs() in the first place instead of just using
    .circular_tuple_windows(). (Of course it still demands that the
    iterator's _items_ are Clone, in order to return each one in multiple
    windows. But that's all.)
    
    One case of this pattern where I couldn't _even_ use my own
    .cyclic_pairs() was in examples/cli.rs, because being an example, it
    couldn't use a purely internal private trait in the main crate. (And I
    couldn't bring myself to handle that by exposing cyclic_pairs() as
    public, because it would be silly if anyone found it useful and ended
    up pulling in this crate for something so irrelevant!)

 Cargo.lock               |  4 ++--
 Cargo.toml               |  2 +-
 examples/cli.rs          | 22 ++++++++--------------
 src/common.rs            | 45 ---------------------------------------------
 src/generators/raster.rs |  9 ++++-----
 src/geometric.rs         |  7 +++----
 src/test.rs              |  4 ++--
 7 files changed, 20 insertions(+), 73 deletions(-)



More information about the tartarus-commits mailing list