#[repr(C)]pub struct SplitterChecker {
pub splitters: *mut u64,
pub len: usize,
}Expand description
Create a splitter checker with proper data structures
This matches C++ AGC’s use of both bloom filter and hash set. For now, we’ll use a simpler approach and just return a sorted vector that can be binary searched.
Returns a pointer to a sorted array of splitters that must be freed with ragc_free_splitter_checker().
Fields§
§splitters: *mut u64§len: usizeAuto Trait Implementations§
impl !Send for SplitterChecker
impl !Sync for SplitterChecker
impl Freeze for SplitterChecker
impl RefUnwindSafe for SplitterChecker
impl Unpin for SplitterChecker
impl UnsafeUnpin for SplitterChecker
impl UnwindSafe for SplitterChecker
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more