diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-01-26 23:54:20 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-01-26 23:54:20 +0100 |
| commit | 088b6b323130b0a9509c76f395c7ed4bf5609234 (patch) | |
| tree | 5f0e6480e68d61dd3b58d4ce986ef7f57adf589e /database/src/sort | |
| parent | f59c6f472d25084aa5f8a116f8cf92f81df09c50 (diff) | |
| download | jellything-088b6b323130b0a9509c76f395c7ed4bf5609234.tar jellything-088b6b323130b0a9509c76f395c7ed4bf5609234.tar.bz2 jellything-088b6b323130b0a9509c76f395c7ed4bf5609234.tar.zst | |
small renamed
Diffstat (limited to 'database/src/sort')
| -rw-r--r-- | database/src/sort/value.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/database/src/sort/value.rs b/database/src/sort/value.rs index bd79db9..79bdc0b 100644 --- a/database/src/sort/value.rs +++ b/database/src/sort/value.rs @@ -6,7 +6,7 @@ use crate::{ filter::binning::Binning, - query::{MultiBehaviour, ValueSortComponent}, + query::{MultiBehaviour, ValueSort}, sort::Index, table::{RowNum, TableNum}, }; @@ -17,11 +17,11 @@ use jellyobject::Object; pub struct ValueIndex { id: TableNum, binning: Binning, - sort: ValueSortComponent, + sort: ValueSort, } impl ValueIndex { - pub fn new(id: TableNum, binning: Binning, sort: ValueSortComponent) -> Self { + pub fn new(id: TableNum, binning: Binning, sort: ValueSort) -> Self { Self { id, binning, sort } } fn keys(&self, id: RowNum, ob: Object) -> Vec<Vec<u8>> { @@ -51,7 +51,7 @@ impl Index for ValueIndex { self.keys(0, before) == self.keys(0, after) } } -impl ValueSortComponent { +impl ValueSort { fn apply(&self, ob: Object, keys: &mut Vec<Vec<u8>>) { match self.multi { MultiBehaviour::First => { |