From 088b6b323130b0a9509c76f395c7ed4bf5609234 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 26 Jan 2026 23:54:20 +0100 Subject: small renamed --- database/src/sort/value.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'database/src/sort') 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> { @@ -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>) { match self.multi { MultiBehaviour::First => { -- cgit v1.3