pub struct BitSliceAdapter<T> { /* private fields */ }Expand description
An adapter that turns any implementation of Bits into a slice.
This is likely less efficient than BitSlice.
Implementations§
Trait Implementations§
Source§impl<'a, T: Bits> BitSliceable<Range<u64>> for &'a BitSliceAdapter<T>
impl<'a, T: Bits> BitSliceable<Range<u64>> for &'a BitSliceAdapter<T>
Source§impl<T: Bits> BitSliceable<Range<u64>> for BitSliceAdapter<T>
impl<T: Bits> BitSliceable<Range<u64>> for BitSliceAdapter<T>
Source§impl<'a, T: Bits> BitSliceable<RangeFrom<u64>> for &'a BitSliceAdapter<T>
impl<'a, T: Bits> BitSliceable<RangeFrom<u64>> for &'a BitSliceAdapter<T>
Source§impl<T: Bits> BitSliceable<RangeFrom<u64>> for BitSliceAdapter<T>
impl<T: Bits> BitSliceable<RangeFrom<u64>> for BitSliceAdapter<T>
Source§impl<'a, T: Bits> BitSliceable<RangeFull> for &'a BitSliceAdapter<T>
impl<'a, T: Bits> BitSliceable<RangeFull> for &'a BitSliceAdapter<T>
Source§impl<T: Bits> BitSliceable<RangeFull> for BitSliceAdapter<T>
impl<T: Bits> BitSliceable<RangeFull> for BitSliceAdapter<T>
Source§impl<'a, T: Bits> BitSliceable<RangeInclusive<u64>> for &'a BitSliceAdapter<T>
impl<'a, T: Bits> BitSliceable<RangeInclusive<u64>> for &'a BitSliceAdapter<T>
Source§impl<T: Bits> BitSliceable<RangeInclusive<u64>> for BitSliceAdapter<T>
impl<T: Bits> BitSliceable<RangeInclusive<u64>> for BitSliceAdapter<T>
Source§impl<'a, T: Bits> BitSliceable<RangeTo<u64>> for &'a BitSliceAdapter<T>
impl<'a, T: Bits> BitSliceable<RangeTo<u64>> for &'a BitSliceAdapter<T>
Source§impl<T: Bits> BitSliceable<RangeTo<u64>> for BitSliceAdapter<T>
impl<T: Bits> BitSliceable<RangeTo<u64>> for BitSliceAdapter<T>
Source§impl<'a, T: Bits> BitSliceable<RangeToInclusive<u64>> for &'a BitSliceAdapter<T>
impl<'a, T: Bits> BitSliceable<RangeToInclusive<u64>> for &'a BitSliceAdapter<T>
Source§impl<T: Bits> BitSliceable<RangeToInclusive<u64>> for BitSliceAdapter<T>
impl<T: Bits> BitSliceable<RangeToInclusive<u64>> for BitSliceAdapter<T>
Source§impl<T: Bits> Bits for BitSliceAdapter<T>
impl<T: Bits> Bits for BitSliceAdapter<T>
Source§type Block = <T as Bits>::Block
type Block = <T as Bits>::Block
The underlying block type used to store the bits of the vector.
Source§fn get_block(&self, position: usize) -> Self::Block
fn get_block(&self, position: usize) -> Self::Block
Gets the block at
position, masked as necessary. Read moreSource§impl<T: BitsMut> BitsMut for BitSliceAdapter<T>
impl<T: BitsMut> BitsMut for BitSliceAdapter<T>
Source§impl<T: Clone> Clone for BitSliceAdapter<T>
impl<T: Clone> Clone for BitSliceAdapter<T>
Source§fn clone(&self) -> BitSliceAdapter<T>
fn clone(&self) -> BitSliceAdapter<T>
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<T: Debug> Debug for BitSliceAdapter<T>
impl<T: Debug> Debug for BitSliceAdapter<T>
Source§impl<T, U> PartialEq<U> for BitSliceAdapter<T>
impl<T, U> PartialEq<U> for BitSliceAdapter<T>
impl<T: Copy> Copy for BitSliceAdapter<T>
Auto Trait Implementations§
impl<T> Freeze for BitSliceAdapter<T>where
T: Freeze,
impl<T> RefUnwindSafe for BitSliceAdapter<T>where
T: RefUnwindSafe,
impl<T> Send for BitSliceAdapter<T>where
T: Send,
impl<T> Sync for BitSliceAdapter<T>where
T: Sync,
impl<T> Unpin for BitSliceAdapter<T>where
T: Unpin,
impl<T> UnwindSafe for BitSliceAdapter<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BitsExt for Twhere
T: Bits,
impl<T> BitsExt for Twhere
T: Bits,
Source§fn bit_concat<Other>(&self, other: Other) -> BitConcat<&Self, Other>
fn bit_concat<Other>(&self, other: Other) -> BitConcat<&Self, Other>
Concatenates two bit vectors, with the bits of
self followed by the bits
of other.Source§fn into_bit_concat<Other>(self, other: Other) -> BitConcat<Self, Other>
fn into_bit_concat<Other>(self, other: Other) -> BitConcat<Self, Other>
Source§fn bit_not(&self) -> BitNot<&Self>
fn bit_not(&self) -> BitNot<&Self>
Returns an object that inverts the values of all the bits in
self.Source§fn into_bit_not(self) -> BitNot<Self>where
Self: Sized,
fn into_bit_not(self) -> BitNot<Self>where
Self: Sized,
Returns an object that inverts the values of all the bits in
self. Read moreSource§fn bit_and<Other>(&self, other: Other) -> BitAnd<&Self, Other>
fn bit_and<Other>(&self, other: Other) -> BitAnd<&Self, Other>
Returns an object that lazily computes the bit-wise conjunction
of two bit-vector-likes. Read more
Source§fn into_bit_and<Other>(self, other: Other) -> BitAnd<Self, Other>
fn into_bit_and<Other>(self, other: Other) -> BitAnd<Self, Other>
Returns an object that lazily computes the bit-wise conjunction
of two bit-vector-likes. Read more
Source§fn bit_or<Other>(&self, other: Other) -> BitOr<&Self, Other>
fn bit_or<Other>(&self, other: Other) -> BitOr<&Self, Other>
Returns an object that lazily computes the bit-wise disjunction
of two bit-vector-likes. Read more
Source§fn into_bit_or<Other>(self, other: Other) -> BitOr<Self, Other>
fn into_bit_or<Other>(self, other: Other) -> BitOr<Self, Other>
Returns an object that lazily computes the bit-wise disjunction
of two bit-vector-likes. Read more
Source§fn bit_xor<Other>(&self, other: Other) -> BitXor<&Self, Other>
fn bit_xor<Other>(&self, other: Other) -> BitXor<&Self, Other>
Returns an object that lazily computes the bit-wise xor of two
bit-vector-likes. Read more
Source§fn into_bit_xor<Other>(self, other: Other) -> BitXor<Self, Other>
fn into_bit_xor<Other>(self, other: Other) -> BitXor<Self, Other>
Returns an object that lazily computes the bit-wise xor of two
bit-vector-likes. Read more
Source§impl<T> BitsMutExt for Twhere
T: BitsMut,
impl<T> BitsMutExt for Twhere
T: BitsMut,
Source§fn bit_assign<T: Bits<Block = Self::Block>>(&mut self, other: T)
fn bit_assign<T: Bits<Block = Self::Block>>(&mut self, other: T)
Source§fn bit_and_assign<T: Bits<Block = Self::Block>>(&mut self, other: T)
fn bit_and_assign<T: Bits<Block = Self::Block>>(&mut self, other: T)
Source§fn bit_or_assign<T: Bits<Block = Self::Block>>(&mut self, other: T)
fn bit_or_assign<T: Bits<Block = Self::Block>>(&mut self, other: T)
Source§fn bit_xor_assign<T: Bits<Block = Self::Block>>(&mut self, other: T)
fn bit_xor_assign<T: Bits<Block = Self::Block>>(&mut self, other: 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