]> git.mikk.net Git - mtbl-rs/commit
Refactor Source trait hierarchy
authorChris Mikkelson <cmikk@fsi.io>
Sun, 21 Jul 2024 00:40:23 +0000 (19:40 -0500)
committerChris Mikkelson <cmikk@fsi.io>
Sun, 21 Jul 2024 00:40:23 +0000 (19:40 -0500)
commit704f2561a0e31b11686d350bb0caf23db204c158
tree72432d6fa21ee81a9e23a1d74756ffae0744af8b
parentdaf63aa731d638425249c68a8c53da7c1fb00d82
Refactor Source trait hierarchy

Source implements get/prefix/range, and is a subtrait of
IterSource which implements only iter(). The Default
implementation is now another subtrait of IterSource.

This avoids several of the previouas `Source<'a> + Ranges<'a>`
and 'Source<'a> + DefaultRanges' type constraints, and
simplifies type paths.
src/merger.rs
src/source.rs