Struct golomb_coded_set::GCSFilterWriter
source · pub struct GCSFilterWriter<'a, H> { /* private fields */ }
Expand description
Colomb-Rice encoded filter writer
Implementations§
source§impl<'a, H: BuildHasher> GCSFilterWriter<'a, H>
impl<'a, H: BuildHasher> GCSFilterWriter<'a, H>
sourcepub fn new(
writer: &'a mut dyn Write,
hasher_builder: H,
m: u64,
p: u8
) -> GCSFilterWriter<'a, H>
pub fn new( writer: &'a mut dyn Write, hasher_builder: H, m: u64, p: u8 ) -> GCSFilterWriter<'a, H>
Create a new GCS writer wrapping a generic writer, with specific seed to siphash
sourcepub fn add_element(&mut self, element: &[u8])
pub fn add_element(&mut self, element: &[u8])
Add some data to the filter
Auto Trait Implementations§
impl<'a, H> Freeze for GCSFilterWriter<'a, H>where
H: Freeze,
impl<'a, H> !RefUnwindSafe for GCSFilterWriter<'a, H>
impl<'a, H> !Send for GCSFilterWriter<'a, H>
impl<'a, H> !Sync for GCSFilterWriter<'a, H>
impl<'a, H> Unpin for GCSFilterWriter<'a, H>where
H: Unpin,
impl<'a, H> !UnwindSafe for GCSFilterWriter<'a, H>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more