Struct sux::rank_sel::SelectZeroFixed1
source · pub struct SelectZeroFixed1<B: SelectZeroHinted = CountBitVec, O: BitFieldSlice<usize> = Vec<usize>, const LOG2_ZEROS_PER_INVENTORY: usize = 8> { /* private fields */ }
Expand description
A selection structure for zeros based on a one-level index.
See SelectFixed1
.
Implementations§
Trait Implementations§
source§impl<B, O, const LOG2_ZEROS_PER_INVENTORY: usize> AsRef<[usize]> for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
impl<B, O, const LOG2_ZEROS_PER_INVENTORY: usize> AsRef<[usize]> for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
Forward AsRef<[usize]>
to the underlying implementation.
source§impl<B: SelectZeroHinted + BitCount, O: BitFieldSlice<usize>, const LOG2_ZEROS_PER_INVENTORY: usize> BitCount for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
impl<B: SelectZeroHinted + BitCount, O: BitFieldSlice<usize>, const LOG2_ZEROS_PER_INVENTORY: usize> BitCount for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
Forward BitCount
to the underlying implementation.
source§impl<B: SelectZeroHinted + BitLength, O: BitFieldSlice<usize>, const LOG2_ZEROS_PER_INVENTORY: usize> BitLength for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
impl<B: SelectZeroHinted + BitLength, O: BitFieldSlice<usize>, const LOG2_ZEROS_PER_INVENTORY: usize> BitLength for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
Forward BitLength
to the underlying implementation.
source§impl<B: Clone + SelectZeroHinted, O: Clone + BitFieldSlice<usize>, const LOG2_ZEROS_PER_INVENTORY: usize> Clone for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
impl<B: Clone + SelectZeroHinted, O: Clone + BitFieldSlice<usize>, const LOG2_ZEROS_PER_INVENTORY: usize> Clone for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
source§fn clone(&self) -> SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
fn clone(&self) -> SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
Returns a copy 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<B: SelectZeroHinted, const LOG2_ZEROS_PER_INVENTORY: usize> ConvertTo<B> for SelectZeroFixed1<B, Vec<usize>, LOG2_ZEROS_PER_INVENTORY>
impl<B: SelectZeroHinted, const LOG2_ZEROS_PER_INVENTORY: usize> ConvertTo<B> for SelectZeroFixed1<B, Vec<usize>, LOG2_ZEROS_PER_INVENTORY>
Forget the index.
fn convert_to(self) -> Result<B>
source§impl<B: SelectZeroHinted, O: BitFieldSlice<usize>, const LOG2_ZEROS_PER_INVENTORY: usize> CopyType for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
impl<B: SelectZeroHinted, O: BitFieldSlice<usize>, const LOG2_ZEROS_PER_INVENTORY: usize> CopyType for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
source§impl<B, O, const LOG2_ZEROS_PER_INVENTORY: usize> CopyType for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>where
B: MemSize + SelectZeroHinted,
O: MemSize + BitFieldSlice<usize>,
PhantomData<[(); LOG2_ZEROS_PER_INVENTORY]>: MemSize,
impl<B, O, const LOG2_ZEROS_PER_INVENTORY: usize> CopyType for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>where
B: MemSize + SelectZeroHinted,
O: MemSize + BitFieldSlice<usize>,
PhantomData<[(); LOG2_ZEROS_PER_INVENTORY]>: MemSize,
source§impl<B: Debug + SelectZeroHinted, O: Debug + BitFieldSlice<usize>, const LOG2_ZEROS_PER_INVENTORY: usize> Debug for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
impl<B: Debug + SelectZeroHinted, O: Debug + BitFieldSlice<usize>, const LOG2_ZEROS_PER_INVENTORY: usize> Debug for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
source§impl<B, O, const LOG2_ZEROS_PER_INVENTORY: usize> DeserializeInner for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>where
B: DeserializeInner + SelectZeroHinted,
O: DeserializeInner + BitFieldSlice<usize>,
PhantomData<[(); LOG2_ZEROS_PER_INVENTORY]>: DeserializeInner,
for<'epserde_desertype> <B as DeserializeInner>::DeserType<'epserde_desertype>: SelectZeroHinted,
for<'epserde_desertype> <O as DeserializeInner>::DeserType<'epserde_desertype>: BitFieldSlice<usize>,
impl<B, O, const LOG2_ZEROS_PER_INVENTORY: usize> DeserializeInner for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>where
B: DeserializeInner + SelectZeroHinted,
O: DeserializeInner + BitFieldSlice<usize>,
PhantomData<[(); LOG2_ZEROS_PER_INVENTORY]>: DeserializeInner,
for<'epserde_desertype> <B as DeserializeInner>::DeserType<'epserde_desertype>: SelectZeroHinted,
for<'epserde_desertype> <O as DeserializeInner>::DeserType<'epserde_desertype>: BitFieldSlice<usize>,
fn _deserialize_full_inner( backend: &mut impl ReadWithPos ) -> Result<Self, Error>
§type DeserType<'epserde_desertype> = SelectZeroFixed1<<B as DeserializeInner>::DeserType<'epserde_desertype>, <O as DeserializeInner>::DeserType<'epserde_desertype>, LOG2_ZEROS_PER_INVENTORY>
type DeserType<'epserde_desertype> = SelectZeroFixed1<<B as DeserializeInner>::DeserType<'epserde_desertype>, <O as DeserializeInner>::DeserType<'epserde_desertype>, LOG2_ZEROS_PER_INVENTORY>
The deserialization type associated with this type. It can be
retrieved conveniently with the alias
DeserType
.fn _deserialize_eps_inner<'a>( backend: &mut SliceWithPos<'a> ) -> Result<Self::DeserType<'a>, Error>
source§impl<B, O, const LOG2_ZEROS_PER_INVENTORY: usize> MemDbgImpl for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>where
B: MemDbgImpl + SelectZeroHinted,
O: MemDbgImpl + BitFieldSlice<usize>,
PhantomData<[(); LOG2_ZEROS_PER_INVENTORY]>: MemDbgImpl,
impl<B, O, const LOG2_ZEROS_PER_INVENTORY: usize> MemDbgImpl for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>where
B: MemDbgImpl + SelectZeroHinted,
O: MemDbgImpl + BitFieldSlice<usize>,
PhantomData<[(); LOG2_ZEROS_PER_INVENTORY]>: MemDbgImpl,
source§impl<B, O, const LOG2_ZEROS_PER_INVENTORY: usize> MemSize for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>where
B: MemSize + SelectZeroHinted,
O: MemSize + BitFieldSlice<usize>,
PhantomData<[(); LOG2_ZEROS_PER_INVENTORY]>: MemSize,
impl<B, O, const LOG2_ZEROS_PER_INVENTORY: usize> MemSize for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>where
B: MemSize + SelectZeroHinted,
O: MemSize + BitFieldSlice<usize>,
PhantomData<[(); LOG2_ZEROS_PER_INVENTORY]>: MemSize,
source§impl<B: SelectZeroHinted + Rank, O: BitFieldSlice<usize>, const LOG2_ZEROS_PER_INVENTORY: usize> Rank for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
impl<B: SelectZeroHinted + Rank, O: BitFieldSlice<usize>, const LOG2_ZEROS_PER_INVENTORY: usize> Rank for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
Forward Rank
to the underlying implementation.
source§impl<B: SelectZeroHinted + RankZero, O: BitFieldSlice<usize>, const LOG2_ZEROS_PER_INVENTORY: usize> RankZero for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
impl<B: SelectZeroHinted + RankZero, O: BitFieldSlice<usize>, const LOG2_ZEROS_PER_INVENTORY: usize> RankZero for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
Forward RankZero
to the underlying implementation.
source§impl<B: SelectZeroHinted + ReprHash, O: BitFieldSlice<usize> + ReprHash, const LOG2_ZEROS_PER_INVENTORY: usize> ReprHash for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
impl<B: SelectZeroHinted + ReprHash, O: BitFieldSlice<usize> + ReprHash, const LOG2_ZEROS_PER_INVENTORY: usize> ReprHash for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
source§impl<B: SelectZeroHinted + Select, O: BitFieldSlice<usize>, const LOG2_ZEROS_PER_INVENTORY: usize> Select for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
impl<B: SelectZeroHinted + Select, O: BitFieldSlice<usize>, const LOG2_ZEROS_PER_INVENTORY: usize> Select for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
Forward Select
to the underlying implementation.
source§impl<B: SelectZeroHinted + BitLength + BitCount, O: BitFieldSlice<usize>, const LOG2_ZEROS_PER_INVENTORY: usize> SelectZero for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
impl<B: SelectZeroHinted + BitLength + BitCount, O: BitFieldSlice<usize>, const LOG2_ZEROS_PER_INVENTORY: usize> SelectZero for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
Provide the hint to the underlying structure.
source§impl<B, O, const LOG2_ZEROS_PER_INVENTORY: usize> SerializeInner for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>where
B: SerializeInner + SelectZeroHinted,
O: SerializeInner + BitFieldSlice<usize>,
PhantomData<[(); LOG2_ZEROS_PER_INVENTORY]>: SerializeInner,
impl<B, O, const LOG2_ZEROS_PER_INVENTORY: usize> SerializeInner for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>where
B: SerializeInner + SelectZeroHinted,
O: SerializeInner + BitFieldSlice<usize>,
PhantomData<[(); LOG2_ZEROS_PER_INVENTORY]>: SerializeInner,
source§const IS_ZERO_COPY: bool = _
const IS_ZERO_COPY: bool = _
Inner constant used by the derive macros to keep
track recursively of whether the type
satisfies the conditions for being zero-copy. It is checked
at runtime against the trait implemented by the type, and
if a
ZeroCopy
type has this constant set to false
serialization will panic.source§const ZERO_COPY_MISMATCH: bool = _
const ZERO_COPY_MISMATCH: bool = _
Inner constant used by the derive macros to keep
track of whether all fields of a type are zero-copy
but neither the attribute
#[zero_copy]
nor the attribute #[deep_copy]
was specified. It is checked at runtime, and if it is true
a warning will be issued, as the type could be zero-copy,
which would be more efficient.source§fn _serialize_inner(&self, backend: &mut impl WriteWithNames) -> Result<()>
fn _serialize_inner(&self, backend: &mut impl WriteWithNames) -> Result<()>
Serialize this structure using the given backend.
source§impl<B: SelectZeroHinted + TypeHash, O: BitFieldSlice<usize> + TypeHash, const LOG2_ZEROS_PER_INVENTORY: usize> TypeHash for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
impl<B: SelectZeroHinted + TypeHash, O: BitFieldSlice<usize> + TypeHash, const LOG2_ZEROS_PER_INVENTORY: usize> TypeHash for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
source§fn type_hash_val(&self, hasher: &mut impl Hasher)
fn type_hash_val(&self, hasher: &mut impl Hasher)
Call
TypeHash::type_hash
on a value.Auto Trait Implementations§
impl<B, O, const LOG2_ZEROS_PER_INVENTORY: usize> Freeze for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
impl<B, O, const LOG2_ZEROS_PER_INVENTORY: usize> RefUnwindSafe for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>where
B: RefUnwindSafe,
O: RefUnwindSafe,
impl<B, O, const LOG2_ZEROS_PER_INVENTORY: usize> Send for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
impl<B, O, const LOG2_ZEROS_PER_INVENTORY: usize> Sync for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
impl<B, O, const LOG2_ZEROS_PER_INVENTORY: usize> Unpin for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
impl<B, O, const LOG2_ZEROS_PER_INVENTORY: usize> UnwindSafe for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>where
B: UnwindSafe,
O: UnwindSafe,
Blanket Implementations§
source§impl<T> BitFieldSlice<usize> for T
impl<T> BitFieldSlice<usize> for T
source§impl<T> BitFieldSliceCore<usize> for T
impl<T> BitFieldSliceCore<usize> for T
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, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
source§impl<B, const LOG2_ZEROS_PER_INVENTORY: usize> ConvertTo<SelectZeroFixed1<B, Vec<usize>, LOG2_ZEROS_PER_INVENTORY>> for B
impl<B, const LOG2_ZEROS_PER_INVENTORY: usize> ConvertTo<SelectZeroFixed1<B, Vec<usize>, LOG2_ZEROS_PER_INVENTORY>> for B
fn convert_to( self ) -> Result<SelectZeroFixed1<B, Vec<usize>, LOG2_ZEROS_PER_INVENTORY>, Error>
source§impl<T> Deserialize for T
impl<T> Deserialize for T
source§fn deserialize_full(backend: &mut impl ReadNoStd) -> Result<T, Error>
fn deserialize_full(backend: &mut impl ReadNoStd) -> Result<T, Error>
Fully deserialize a structure of this type from the given backend.
source§fn deserialize_eps(
backend: &[u8]
) -> Result<<T as DeserializeInner>::DeserType<'_>, Error>
fn deserialize_eps( backend: &[u8] ) -> Result<<T as DeserializeInner>::DeserType<'_>, Error>
ε-copy deserialize a structure of this type from the given backend.
source§fn load_full(path: impl AsRef<Path>) -> Result<Self, Error>
fn load_full(path: impl AsRef<Path>) -> Result<Self, Error>
Commodity method to fully deserialize from a file.
source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
source§impl<T> MemDbg for Twhere
T: MemDbgImpl,
impl<T> MemDbg for Twhere
T: MemDbgImpl,
source§fn mem_dbg(&self, flags: DbgFlags) -> Result<(), Error>
fn mem_dbg(&self, flags: DbgFlags) -> Result<(), Error>
Write to stdout debug infos about the structure memory usage, expanding
all levels of nested structures.
source§fn mem_dbg_on(
&self,
writer: &mut impl Write,
flags: DbgFlags
) -> Result<(), Error>
fn mem_dbg_on( &self, writer: &mut impl Write, flags: DbgFlags ) -> Result<(), Error>
Write to a
core::fmt::Write
debug infos about the structure memory usage,
expanding all levels of nested structures.source§fn mem_dbg_depth(
&self,
total_size: usize,
max_depth: usize,
flags: DbgFlags
) -> Result<(), Error>
fn mem_dbg_depth( &self, total_size: usize, max_depth: usize, flags: DbgFlags ) -> Result<(), Error>
Write to stdout debug infos about the structure memory usage, but expanding only
up to
max_depth
levels of nested structures.source§fn mem_dbg_depth_on(
&self,
writer: &mut impl Write,
total_size: usize,
max_depth: usize,
prefix: &mut String,
field_name: Option<&str>,
is_last: bool,
flags: DbgFlags
) -> Result<(), Error>
fn mem_dbg_depth_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, field_name: Option<&str>, is_last: bool, flags: DbgFlags ) -> Result<(), Error>
Write to a
core::fmt::Write
debug infos about the structure memory usage,
but expanding only up to max_depth
levels of nested structures.source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> Serialize for T
impl<T> Serialize for T
source§fn serialize_on_field_write(
&self,
backend: &mut impl WriteWithNames
) -> Result<(), Error>
fn serialize_on_field_write( &self, backend: &mut impl WriteWithNames ) -> Result<(), Error>
Serialize the type using the given WriteWithNames
.
source§fn serialize(&self, backend: &mut impl WriteNoStd) -> Result<usize, Error>
fn serialize(&self, backend: &mut impl WriteNoStd) -> Result<usize, Error>
Serialize the type using the given backend.
source§fn serialize_with_schema(
&self,
backend: &mut impl WriteNoStd
) -> Result<Schema, Error>
fn serialize_with_schema( &self, backend: &mut impl WriteNoStd ) -> Result<Schema, Error>
source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.