Skip to content

Commit

Permalink
doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
beling committed Sep 27, 2024
1 parent 8883607 commit 70c23be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions csf/src/fp/collision_solver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pub trait CollisionSolver {
/// Array that shows indices which have assigned values and are not under collision.
fn to_collision_array(self) -> Box<[u64]>;

/// Constructs array for values to fill with `set_value` method.
fn construct_value_array(number_of_values: usize, bits_per_fragment: u8) -> Box<[u64]> {
Box::<[u64]>::with_zeroed_bits(number_of_values*bits_per_fragment as usize)
}
Expand Down
2 changes: 1 addition & 1 deletion csf/src/fp/kvset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub trait KVSet<K> {
/// Convert `self` into the vector of retained key-value pairs.
///
/// If `self` doesn't remember which keys are retained it uses `retained_hint` to check this.
#[inline] fn into_vec<P>(self, retained_hint: P) -> Vec<(K, u8)>
#[inline] fn into_vec<P>(self, retained_hint: P) -> Vec<(K, u8)> // TODO maybe return a pair of vectors
where P: FnMut(&K) -> bool, K: Clone, Self: Sized
{
self.map_each_key_value(|k, v| ((*k).clone(), v), retained_hint)
Expand Down

0 comments on commit 70c23be

Please sign in to comment.