Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions vortex-buffer/src/bit/buf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ impl BitBuffer {
}

/// Invokes `f` with indexes `0..len` collecting the boolean results into a new [`BitBuffer`].
#[inline]
pub fn collect_bool<F: FnMut(usize) -> bool>(len: usize, f: F) -> Self {
BitBufferMut::collect_bool(len, f).freeze()
}
Expand Down
1 change: 1 addition & 0 deletions vortex-buffer/src/bit/buf_mut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ impl BitBufferMut {
}

/// Invokes `f` with indexes `0..len` collecting the boolean results into a new `BitBufferMut`
#[inline]
pub fn collect_bool<F: FnMut(usize) -> bool>(len: usize, mut f: F) -> Self {
let mut buffer = BufferMut::with_capacity(len.div_ceil(64) * 8);

Expand Down
Loading