Skip to content

Commit

Permalink
feature: Make Fid cloneable. (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
shanecelis authored Apr 14, 2024
1 parent 40f52ab commit f41fce9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ use super::internal_data_structure::popcount_table::PopcountTable;
/// In summary:
///
/// _rank() = (value of left chunk) + (value of left block) + (value of table keyed by inner block bits)_.
#[derive(Clone)]
pub struct Fid {
/// Raw data.
byte_vec: Vec<u8>,
Expand All @@ -116,6 +117,7 @@ pub struct FidIter<'iter> {
i: u64,
}

#[derive(Clone)]
/// Collection of Chunk.
struct Chunks {
chunks: Vec<Chunk>,
Expand Down
1 change: 1 addition & 0 deletions src/internal_data_structure/popcount_table.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// Cache table of `popcount` results.
#[derive(Clone)]
pub struct PopcountTable {
bit_length: u8,

Expand Down

0 comments on commit f41fce9

Please sign in to comment.