pub struct FstTombstoneSet<Item> { /* private fields */ }Expand description
A tombstone set backed by FST (Finite State Transducer) for byte string keys. This provides space-efficient storage with zero false positives for any type that can be serialized to bytes (strings, serialized structs, etc.). FST maintains keys in sorted order and supports efficient set operations.
§Performance Notes
- The
extend()operation rebuilds the entire FST, so batch your insertions when possible - Union operations are efficient and create a new compressed FST
- Lookups are very fast (logarithmic in the number of keys)
Implementations§
Source§impl<Item> FstTombstoneSet<Item>
impl<Item> FstTombstoneSet<Item>
Trait Implementations§
Source§impl<Item: Clone> Clone for FstTombstoneSet<Item>
impl<Item: Clone> Clone for FstTombstoneSet<Item>
Source§fn clone(&self) -> FstTombstoneSet<Item>
fn clone(&self) -> FstTombstoneSet<Item>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Item: Debug> Debug for FstTombstoneSet<Item>
impl<Item: Debug> Debug for FstTombstoneSet<Item>
Source§impl<Item> Default for FstTombstoneSet<Item>
impl<Item> Default for FstTombstoneSet<Item>
Source§impl Extend<String> for FstTombstoneSet<String>
impl Extend<String> for FstTombstoneSet<String>
Source§fn extend<T: IntoIterator<Item = String>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = String>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<String> for FstTombstoneSet<String>
impl FromIterator<String> for FstTombstoneSet<String>
Source§impl IntoIterator for FstTombstoneSet<String>
impl IntoIterator for FstTombstoneSet<String>
Source§impl Len for FstTombstoneSet<String>
impl Len for FstTombstoneSet<String>
Source§impl TombstoneSet<String> for FstTombstoneSet<String>
impl TombstoneSet<String> for FstTombstoneSet<String>
Auto Trait Implementations§
impl<Item> Freeze for FstTombstoneSet<Item>
impl<Item> RefUnwindSafe for FstTombstoneSet<Item>where
Item: RefUnwindSafe,
impl<Item> Send for FstTombstoneSet<Item>where
Item: Send,
impl<Item> Sync for FstTombstoneSet<Item>where
Item: Sync,
impl<Item> Unpin for FstTombstoneSet<Item>where
Item: Unpin,
impl<Item> UnwindSafe for FstTombstoneSet<Item>where
Item: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more