diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-02-06 01:35:44 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-02-06 01:35:44 +0100 |
| commit | c914529348b8aa74a142b12f2a3b7532350d3f04 (patch) | |
| tree | 643f6b9f51835212355f0662d8aa9312896e97c2 /database/src/kv/sort/mod.rs | |
| parent | 17be68281eae0be371be63db4c59d4ecaf2f1ba4 (diff) | |
| download | jellything-c914529348b8aa74a142b12f2a3b7532350d3f04.tar jellything-c914529348b8aa74a142b12f2a3b7532350d3f04.tar.bz2 jellything-c914529348b8aa74a142b12f2a3b7532350d3f04.tar.zst | |
index key serialization
Diffstat (limited to 'database/src/kv/sort/mod.rs')
| -rw-r--r-- | database/src/kv/sort/mod.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/database/src/kv/sort/mod.rs b/database/src/kv/sort/mod.rs index 403ba73..8b814cd 100644 --- a/database/src/kv/sort/mod.rs +++ b/database/src/kv/sort/mod.rs @@ -4,26 +4,6 @@ Copyright (C) 2026 metamuffin <metamuffin.org> */ -use jellyobject::Path; - -use crate::{MultiBehaviour, Sort}; pub mod none; pub mod value; - -#[derive(Hash, PartialEq, Eq)] -pub enum SortKey { - None, - Value(Path, MultiBehaviour), - Text(Path), -} - -impl Sort { - pub fn key(&self) -> SortKey { - match self { - Sort::None => SortKey::None, - Sort::Value(vs) => SortKey::Value(vs.path.clone(), vs.multi), - Sort::TextSearch(p, _) => SortKey::Text(p.to_owned()), - } - } -} |