Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
redox-os
cbloom
Commits
0d494b89
Commit
0d494b89
authored
Jul 20, 2019
by
Tom Almeida
Browse files
Merge branch 'ups/derive-debug' into 'master'
filter: derive Debug trait See merge request
!2
parents
75af6765
7e9f8cca
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib.rs
View file @
0d494b89
...
...
@@ -6,6 +6,7 @@
//! This implementation is fairly standard, except that it uses atomic integers to work
//! concurrently.
#![deny(missing_debug_implementations)]
#![feature(integer_atomics)]
use
std
::
cmp
;
...
...
@@ -40,6 +41,7 @@ fn hash(mut x: u64) -> u64 {
/// It works by having an array of bits. Every element is hashed into a sequence of these bits. The
/// bits of the inserted elements are set to 1. When testing for membership, we simply AND the
/// bits.
#[derive(Debug)]
pub
struct
Filter
{
/// The bit array.
///
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment