pub struct RankSupport<'bv> { /* private fields */ }Implementations§
Source§impl<'bv> RankSupport<'bv>
impl<'bv> RankSupport<'bv>
pub fn new(bit_vec: &BitVec) -> RankSupport<'_>
pub fn dummy_rankn(bv: &BitVec, i: usize) -> u64
pub fn rank1(&self, i: u64) -> u64
pub fn overhead(&self) -> usize
pub fn save(&self, file_name: &str) -> Result<()>
pub fn load(file_name: String) -> Result<RankSupport<'bv>>
Trait Implementations§
Source§impl<'bv> Clone for RankSupport<'bv>
impl<'bv> Clone for RankSupport<'bv>
Source§fn clone(&self) -> RankSupport<'bv>
fn clone(&self) -> RankSupport<'bv>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'bv> Debug for RankSupport<'bv>
impl<'bv> Debug for RankSupport<'bv>
Source§impl<'de, 'bv> Deserialize<'de> for RankSupport<'bv>
impl<'de, 'bv> Deserialize<'de> for RankSupport<'bv>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'bv> PartialEq for RankSupport<'bv>
impl<'bv> PartialEq for RankSupport<'bv>
Source§impl<'bv> Serialize for RankSupport<'bv>
impl<'bv> Serialize for RankSupport<'bv>
impl<'bv> StructuralPartialEq for RankSupport<'bv>
Auto Trait Implementations§
impl<'bv> Freeze for RankSupport<'bv>
impl<'bv> RefUnwindSafe for RankSupport<'bv>
impl<'bv> Send for RankSupport<'bv>
impl<'bv> Sync for RankSupport<'bv>
impl<'bv> Unpin for RankSupport<'bv>
impl<'bv> UnwindSafe for RankSupport<'bv>
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