pub struct BitAnd<T, U>(/* private fields */);Expand description
The result of BitsExt::bit_and.
The resulting bit vector adapter ands the bits of the two underlying bit-vector-likes.
Trait Implementations§
Source§impl<Block, R, T, U> BitSliceable<R> for BitAnd<T, U>where
Block: BlockType,
R: Clone,
T: BitSliceable<R, Block = Block>,
U: BitSliceable<R, Block = Block>,
impl<Block, R, T, U> BitSliceable<R> for BitAnd<T, U>where
Block: BlockType,
R: Clone,
T: BitSliceable<R, Block = Block>,
U: BitSliceable<R, Block = Block>,
Source§impl<'a, T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeFrom<u64>> for &'a BitAnd<T, U>
impl<'a, T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeFrom<u64>> for &'a BitAnd<T, U>
Source§impl<'a, T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeInclusive<u64>> for &'a BitAnd<T, U>
impl<'a, T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeInclusive<u64>> for &'a BitAnd<T, U>
Source§impl<'a, T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeToInclusive<u64>> for &'a BitAnd<T, U>
impl<'a, T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeToInclusive<u64>> for &'a BitAnd<T, U>
Source§impl<T, U> Bits for BitAnd<T, U>
impl<T, U> Bits for BitAnd<T, U>
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§fn get_raw_block(&self, position: usize) -> Self::Block
fn get_raw_block(&self, position: usize) -> Self::Block
Gets the block at
position, without masking. Read moreAuto Trait Implementations§
impl<T, U> Freeze for BitAnd<T, U>
impl<T, U> RefUnwindSafe for BitAnd<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for BitAnd<T, U>
impl<T, U> Sync for BitAnd<T, U>
impl<T, U> Unpin for BitAnd<T, U>
impl<T, U> UnwindSafe for BitAnd<T, U>where
T: UnwindSafe,
U: 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> 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