Struct bv::adapter::BitFill [−][src]
Emulates a constant-valued bit-vector of a given size.
Implementations
impl<Block: BlockType> BitFill<Block>
[src]
pub fn zeroes(len: u64) -> Self
[src]
Constructs a compact bit-vector-like of len
0s.
pub fn ones(len: u64) -> Self
[src]
Constructs a compact bit-vector-like of len
1s.
Trait Implementations
impl<Block: BlockType> BitSliceable<Range<u64>> for BitFill<Block>
[src]
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, range: Range<u64>) -> Self::Slice
[src]
impl<'a, Block: BlockType> BitSliceable<Range<u64>> for &'a BitFill<Block>
[src]
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, range: Range<u64>) -> Self::Slice
[src]
impl<Block: BlockType> BitSliceable<RangeFrom<u64>> for BitFill<Block>
[src]
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, range: RangeFrom<u64>) -> Self::Slice
[src]
impl<'a, Block: BlockType> BitSliceable<RangeFrom<u64>> for &'a BitFill<Block>
[src]
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, range: RangeFrom<u64>) -> Self::Slice
[src]
impl<Block: BlockType> BitSliceable<RangeFull> for BitFill<Block>
[src]
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, _range: RangeFull) -> Self::Slice
[src]
impl<'a, Block: BlockType> BitSliceable<RangeFull> for &'a BitFill<Block>
[src]
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, _range: RangeFull) -> Self::Slice
[src]
impl<Block: BlockType> BitSliceable<RangeInclusive<u64>> for BitFill<Block>
[src]
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, range: RangeInclusive<u64>) -> Self::Slice
[src]
impl<'a, Block: BlockType> BitSliceable<RangeInclusive<u64>> for &'a BitFill<Block>
[src]
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, range: RangeInclusive<u64>) -> Self::Slice
[src]
impl<Block: BlockType> BitSliceable<RangeTo<u64>> for BitFill<Block>
[src]
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, range: RangeTo<u64>) -> Self::Slice
[src]
impl<'a, Block: BlockType> BitSliceable<RangeTo<u64>> for &'a BitFill<Block>
[src]
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, range: RangeTo<u64>) -> Self::Slice
[src]
impl<Block: BlockType> BitSliceable<RangeToInclusive<u64>> for BitFill<Block>
[src]
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, range: RangeToInclusive<u64>) -> Self::Slice
[src]
impl<'a, Block: BlockType> BitSliceable<RangeToInclusive<u64>> for &'a BitFill<Block>
[src]
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, range: RangeToInclusive<u64>) -> Self::Slice
[src]
impl<Block: BlockType> Bits for BitFill<Block>
[src]
type Block = Block
The underlying block type used to store the bits of the vector.
fn bit_len(&self) -> u64
[src]
fn get_bit(&self, position: u64) -> bool
[src]
fn get_block(&self, position: usize) -> Self::Block
[src]
fn get_raw_block(&self, position: usize) -> Self::Block
[src]
fn get_bits(&self, position: u64, len: usize) -> Self::Block
[src]
fn block_len(&self) -> usize
[src]
fn to_bit_vec(&self) -> BitVec<Self::Block>
[src]
impl<Block: Clone> Clone for BitFill<Block>
[src]
impl<Block: Debug> Debug for BitFill<Block>
[src]
impl<Block: BlockType> Index<u64> for BitFill<Block>
[src]
impl<T: Bits> PartialEq<T> for BitFill<T::Block>
[src]
Auto Trait Implementations
impl<Block> RefUnwindSafe for BitFill<Block> where
Block: RefUnwindSafe,
Block: RefUnwindSafe,
impl<Block> Send for BitFill<Block> where
Block: Send,
Block: Send,
impl<Block> Sync for BitFill<Block> where
Block: Sync,
Block: Sync,
impl<Block> Unpin for BitFill<Block> where
Block: Unpin,
Block: Unpin,
impl<Block> UnwindSafe for BitFill<Block> where
Block: UnwindSafe,
Block: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,