Skip to content

Commit

Permalink
Enforce docs everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Emann committed Sep 5, 2023
1 parent 36c2fef commit a041a88
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions croaring/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#![deny(missing_docs)]
//! Rust wrapper for `CRoaring` (a C/C++ implementation at <https://github.com/RoaringBitmap/CRoaring>)
//!
//! Provides Compressed Bitmaps, which act like a set of integers in an efficient way.

pub mod bitmap;
pub mod bitset;
pub mod treemap;
Expand Down
3 changes: 3 additions & 0 deletions croaring/src/treemap/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ type InnerIter<'a> = iter::FlatMap<
fn((&'a u32, &'a Bitmap)) -> To64Iter<'a>,
>;

/// Iterator over values stored in the treemap
///
/// Values are ordered in ascending order
pub struct TreemapIterator<'a> {
iter: InnerIter<'a>,
}
Expand Down
4 changes: 4 additions & 0 deletions croaring/src/treemap/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ mod util;
pub use iter::TreemapIterator;
pub use serialization::{Deserializer, Serializer};

/// A RoaringBitmap-based structure that supports 64bit unsigned integer values
///
/// Implemented as a [`BTreeMap`] of [`Bitmap`]s.
#[derive(Clone, PartialEq, Eq)]
pub struct Treemap {
/// The underlying map of bitmaps
pub map: BTreeMap<u32, Bitmap>,
}

0 comments on commit a041a88

Please sign in to comment.