pub struct Options<TC, CC = Vec<u64>, VC = Vec<u64>, WC = u64> {
pub indexes: RankSelect<CC, VC, WC>,
pub somes: TC,
}
Fields§
§indexes: RankSelect<CC, VC, WC>
Uses two bits for each item, one to indicate the variant and one (amortized) to enable efficient rank determination.
somes: TC
Trait Implementations§
source§impl<'a, TC: AsBytes<'a>, CC: AsBytes<'a>, VC: AsBytes<'a>> AsBytes<'a> for Options<TC, CC, VC, &'a u64>
impl<'a, TC: AsBytes<'a>, CC: AsBytes<'a>, VC: AsBytes<'a>> AsBytes<'a> for Options<TC, CC, VC, &'a u64>
source§impl<'de, TC, CC, VC, WC> Deserialize<'de> for Options<TC, CC, VC, WC>
impl<'de, TC, CC, VC, WC> Deserialize<'de> for Options<TC, CC, VC, WC>
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<'a, TC: FromBytes<'a>, CC: FromBytes<'a>, VC: FromBytes<'a>> FromBytes<'a> for Options<TC, CC, VC, &'a u64>
impl<'a, TC: FromBytes<'a>, CC: FromBytes<'a>, VC: FromBytes<'a>> FromBytes<'a> for Options<TC, CC, VC, &'a u64>
source§impl<'a, TC, CC: IndexAs<u64> + Len, VC: IndexAs<u64> + Len, WC: Copy + CopyAs<u64>> Index for &'a Options<TC, CC, VC, WC>
impl<'a, TC, CC: IndexAs<u64> + Len, VC: IndexAs<u64> + Len, WC: Copy + CopyAs<u64>> Index for &'a Options<TC, CC, VC, WC>
source§impl<TC: Index, CC: IndexAs<u64> + Len, VC: IndexAs<u64> + Len, WC: Copy + CopyAs<u64>> Index for Options<TC, CC, VC, WC>
impl<TC: Index, CC: IndexAs<u64> + Len, VC: IndexAs<u64> + Len, WC: Copy + CopyAs<u64>> Index for Options<TC, CC, VC, WC>
source§impl<TC: IndexMut, CC: IndexAs<u64> + Len, VC: IndexAs<u64> + Len> IndexMut for Options<TC, CC, VC>
impl<TC: IndexMut, CC: IndexAs<u64> + Len, VC: IndexAs<u64> + Len> IndexMut for Options<TC, CC, VC>
source§impl<TC: PartialEq, CC: PartialEq, VC: PartialEq, WC: PartialEq> PartialEq for Options<TC, CC, VC, WC>
impl<TC: PartialEq, CC: PartialEq, VC: PartialEq, WC: PartialEq> PartialEq for Options<TC, CC, VC, WC>
impl<TC: Copy, CC: Copy, VC: Copy, WC: Copy> Copy for Options<TC, CC, VC, WC>
impl<TC, CC, VC, WC> StructuralPartialEq for Options<TC, CC, VC, WC>
Auto Trait Implementations§
impl<TC, CC, VC, WC> Freeze for Options<TC, CC, VC, WC>
impl<TC, CC, VC, WC> RefUnwindSafe for Options<TC, CC, VC, WC>
impl<TC, CC, VC, WC> Send for Options<TC, CC, VC, WC>
impl<TC, CC, VC, WC> Sync for Options<TC, CC, VC, WC>
impl<TC, CC, VC, WC> Unpin for Options<TC, CC, VC, WC>
impl<TC, CC, VC, WC> UnwindSafe for Options<TC, CC, VC, WC>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)