]> git.mikk.net Git - mtbl-rs/log
mtbl-rs
22 months agomap values only; generic keys too complex
Chris Mikkelson [Mon, 17 Jun 2024 02:08:38 +0000 (21:08 -0500)]
map values only; generic keys too complex

2 years agoSeekable: relax Ord requirement on keys
Chris Mikkelson [Fri, 3 May 2024 05:54:15 +0000 (00:54 -0500)]
Seekable: relax Ord requirement on keys

This allows implementations to return Result<> types to propagate
errors. Those errors will need to be handled prior to merging
or coalescing.

2 years agoSeekableVec: relax Copy requirement to Clone
Chris Mikkelson [Mon, 29 Apr 2024 01:48:59 +0000 (20:48 -0500)]
SeekableVec: relax Copy requirement to Clone

2 years agoModify filter_map to only map values
Chris Mikkelson [Mon, 29 Apr 2024 01:44:00 +0000 (20:44 -0500)]
Modify filter_map to only map values

Mapping keys requires a conversion on seek from the
mapped key to the inner key. Since the keys are passed
to seek by reference to avoid moves, this complicates
consuming the key for a full conversion to the inner
key.

For now, restrict mapping to values only. This required
changing the filter function signature to take a reference
to the key so its caller could retain the key for returning.

2 years agocargo-clippy fixes
Chris Mikkelson [Sun, 28 Apr 2024 20:57:27 +0000 (15:57 -0500)]
cargo-clippy fixes

Remove redudant Some(foo()?).

Make PartialOrd more canonical.

2 years agoAdd coalesce (merge function) support
Chris Mikkelson [Sun, 28 Apr 2024 20:54:28 +0000 (15:54 -0500)]
Add coalesce (merge function) support

2 years agoSeekableVec: add value type.
Chris Mikkelson [Sun, 28 Apr 2024 20:46:14 +0000 (15:46 -0500)]
SeekableVec: add value type.

2 years agoRefactor imports for visibility.
Chris Mikkelson [Sun, 28 Apr 2024 19:18:23 +0000 (14:18 -0500)]
Refactor imports for visibility.

2 years agoMove SeekableVec to module for test support
Chris Mikkelson [Sun, 28 Apr 2024 18:52:14 +0000 (13:52 -0500)]
Move SeekableVec to module for test support

2 years agoRefactor to generic Seekable IntoIterator
Chris Mikkelson [Sun, 28 Apr 2024 18:43:04 +0000 (13:43 -0500)]
Refactor to generic Seekable IntoIterator

2 years agoRemove lender dependency
Chris Mikkelson [Sun, 28 Apr 2024 18:18:18 +0000 (13:18 -0500)]
Remove lender dependency

2 years agoformat iter.rs
Chris Mikkelson [Thu, 18 Apr 2024 01:16:10 +0000 (20:16 -0500)]
format iter.rs

2 years agoConvert AsRef template functions to use impl AsRef
Chris Mikkelson [Thu, 18 Apr 2024 01:15:48 +0000 (20:15 -0500)]
Convert AsRef template functions to use impl AsRef

2 years agoiter: Genericize repeated IntoIterator implementations
Chris Mikkelson [Fri, 12 Apr 2024 19:15:10 +0000 (14:15 -0500)]
iter: Genericize repeated IntoIterator implementations

Introduce 'Seekable<T: Entries>' wrapper to bring common
'return Iter<T>' logic to one place.

2 years agoEntries::filter_seek -> Entries::filter
Chris Mikkelson [Sun, 7 Apr 2024 20:04:53 +0000 (15:04 -0500)]
Entries::filter_seek -> Entries::filter

No longer need separate name due to Iterator co-implementation

2 years agoRename Iter to "entries" to avoid confusion with iterator.
Chris Mikkelson [Sun, 7 Apr 2024 20:01:41 +0000 (15:01 -0500)]
Rename Iter to "entries" to avoid confusion with iterator.

Entries implements IntoIterator.

2 years agoIter -> Entries, prep for Iter: IntoIterator
Chris Mikkelson [Sun, 7 Apr 2024 19:09:25 +0000 (14:09 -0500)]
Iter -> Entries, prep for Iter: IntoIterator

2 years agoiter: IterBox -> IterCell, private struct
Chris Mikkelson [Sun, 7 Apr 2024 18:37:03 +0000 (13:37 -0500)]
iter: IterBox -> IterCell, private struct

2 years agomake test output more readable
Chris Mikkelson [Sun, 7 Apr 2024 18:08:22 +0000 (13:08 -0500)]
make test output more readable

2 years agoIter::filter_seek: consume source iterator
Chris Mikkelson [Sun, 7 Apr 2024 18:08:03 +0000 (13:08 -0500)]
Iter::filter_seek: consume source iterator

2 years agorustfmt
Chris Mikkelson [Sun, 7 Apr 2024 18:05:57 +0000 (13:05 -0500)]
rustfmt

2 years agoInitial commit
Chris Mikkelson [Sun, 7 Apr 2024 16:56:05 +0000 (11:56 -0500)]
Initial commit