From e35c11e051a559fc03f724223ce67f9e8d955289 Mon Sep 17 00:00:00 2001 From: Shane Celis Date: Sun, 28 Apr 2024 05:56:08 -0400 Subject: [PATCH] excise: Comment out code dependent on laysakura/louds-rs#14. If that PR gets merged, we'll put it back. --- Cargo.toml | 3 +- src/inc_search.rs | 81 +++++++++++++++++++++++++++++++---------------- src/map.rs | 2 +- src/map/trie.rs | 8 ++--- 4 files changed, 59 insertions(+), 35 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0fd2fbd..c2aa36d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,8 +12,7 @@ categories = ["compression", "data-structures"] edition = "2021" [dependencies] -# louds-rs = "0.6" -louds-rs = { path = "../louds-rs" } +louds-rs = "0.6" mem_dbg = { version = "0.1.4", optional = true } serde = { version = "1.0", features = ["derive"], optional = true } diff --git a/src/inc_search.rs b/src/inc_search.rs index 04a2ea2..211a494 100644 --- a/src/inc_search.rs +++ b/src/inc_search.rs @@ -40,7 +40,7 @@ //! the loop. use crate::{ map::Trie, - try_collect::{TryCollect, TryFromIterator}, + // try_collect::{TryCollect, TryFromIterator}, }; use louds_rs::LoudsNodeNum; @@ -184,16 +184,34 @@ impl<'a, Label: Ord, Value> IncSearch<'a, Label, Value> { self.trie.value(self.node) } - /// Return the current prefix for this search. - pub fn prefix(&self) -> C - where - C: TryFromIterator, - Label: Clone, - { - let mut v: Vec