pub struct CountIndex { /* private fields */ }Implementations§
Source§impl CountIndex
impl CountIndex
Sourcepub fn build_from_bin_stream(src: impl Read) -> Result<Self>
pub fn build_from_bin_stream(src: impl Read) -> Result<Self>
从二进制流构建:每行 u64 (nat endian) rowid 序列(重复即累加)。
pub fn count(&self, rowid: u64) -> u64
pub fn iter(&self) -> impl Iterator<Item = (u64, u32)>
pub fn write_dump(&self, path: &Path) -> Result<()>
pub fn from_bin(path: &Path) -> Result<Self>
Trait Implementations§
Source§impl Debug for CountIndex
impl Debug for CountIndex
Source§impl Default for CountIndex
impl Default for CountIndex
Source§fn default() -> CountIndex
fn default() -> CountIndex
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CountIndex
impl RefUnwindSafe for CountIndex
impl Send for CountIndex
impl Sync for CountIndex
impl Unpin for CountIndex
impl UnsafeUnpin for CountIndex
impl UnwindSafe for CountIndex
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