pub enum BitVec {
N(BitVec),
U(BitVec),
}Variants§
Implementations§
Source§impl BitVec
impl BitVec
pub fn from_str_radix(s: &str, radix: u32) -> Result<BitVec, ParseError>
Source§impl BitVec
impl BitVec
pub fn from_bigint(v: Integer, bits: usize) -> BitVec
pub fn as_bigint(&self) -> Cow<'_, Integer>
pub fn as_raw(&self) -> Cow<'_, Integer>
pub fn zero(bits: usize) -> BitVec
pub fn one(bits: usize) -> BitVec
pub fn count_ones(&self) -> u32
pub fn count_zeros(&self) -> u32
pub fn leading_ones(&self) -> u32
pub fn leading_zeros(&self) -> u32
pub fn bits(&self) -> usize
pub fn signed(self) -> BitVec
pub fn signed_assign(&mut self)
pub fn is_zero(&self) -> bool
pub fn is_one(&self) -> bool
pub fn is_signed(&self) -> bool
pub fn is_negative(&self) -> bool
pub fn unsigned(self) -> BitVec
pub fn unsigned_assign(&mut self)
pub fn is_unsigned(&self) -> bool
pub fn bit(&self, index: u32) -> bool
pub fn set_bit(&mut self, index: u32)
pub fn leading_one(&self) -> Option<u32>
pub fn msb(&self) -> bool
pub fn lsb(&self) -> bool
pub fn from_be_bytes(buf: &[u8]) -> BitVec
pub fn from_le_bytes(buf: &[u8]) -> BitVec
pub fn from_ne_bytes(buf: &[u8]) -> BitVec
pub fn to_be_bytes(&self, buf: &mut [u8])
pub fn to_le_bytes(&self, buf: &mut [u8])
pub fn to_ne_bytes(&self, buf: &mut [u8])
pub fn from_bytes<O>(bytes: &[u8], signed: bool) -> BitVecwhere
O: Order,
pub fn into_bytes<O>(self, bytes: &mut [u8])where
O: Order,
pub fn incr(&self, value: u64) -> BitVec
pub fn succ(&self) -> BitVec
pub fn decr(&self, value: u64) -> BitVec
pub fn pred(&self) -> BitVec
pub fn abs(&self) -> BitVec
pub fn lcm(&self, rhs: &BitVec) -> BitVec
pub fn gcd(&self, rhs: &BitVec) -> BitVec
pub fn gcd_ext(&self, rhs: &BitVec) -> (BitVec, BitVec, BitVec)
pub fn signed_borrow(&self, rhs: &BitVec) -> bool
pub fn carry(&self, rhs: &BitVec) -> bool
pub fn signed_carry(&self, rhs: &BitVec) -> bool
pub fn rem_euclid(&self, rhs: &BitVec) -> BitVec
pub fn max_value_with(bits: usize, signed: bool) -> BitVec
pub fn max_value(&self) -> BitVec
pub fn min_value_with(bits: usize, signed: bool) -> BitVec
pub fn min_value(&self) -> BitVec
pub fn signed_cast(&self, size: usize) -> BitVec
pub fn unsigned_cast(&self, size: usize) -> BitVec
pub fn signed_cast_assign(&mut self, bits: usize)
pub fn unsigned_cast_assign(&mut self, bits: usize)
pub fn cast(self, size: usize) -> BitVec
pub fn cast_assign(&mut self, size: usize)
Source§impl BitVec
impl BitVec
pub fn neg_assign(&mut self)
Source§impl BitVec
impl BitVec
pub fn not_assign(&mut self)
Source§impl BitVec
impl BitVec
pub fn signed_div(&self, rhs: &BitVec) -> BitVec
pub fn signed_div_assign(&mut self, rhs: &BitVec)
Source§impl BitVec
impl BitVec
pub fn signed_rem(&self, rhs: &BitVec) -> BitVec
pub fn signed_rem_assign(&mut self, rhs: &BitVec)
Source§impl BitVec
impl BitVec
pub fn signed_shr(&self, rhs: &BitVec) -> BitVec
pub fn signed_shr_assign(&mut self, rhs: &BitVec)
Trait Implementations§
Source§impl AddAssign<&BitVec> for BitVec
impl AddAssign<&BitVec> for BitVec
Source§fn add_assign(&mut self, rhs: &BitVec)
fn add_assign(&mut self, rhs: &BitVec)
Performs the
+= operation. Read moreSource§impl AddAssign for BitVec
impl AddAssign for BitVec
Source§fn add_assign(&mut self, rhs: BitVec)
fn add_assign(&mut self, rhs: BitVec)
Performs the
+= operation. Read moreSource§impl BitAndAssign<&BitVec> for BitVec
impl BitAndAssign<&BitVec> for BitVec
Source§fn bitand_assign(&mut self, rhs: &BitVec)
fn bitand_assign(&mut self, rhs: &BitVec)
Performs the
&= operation. Read moreSource§impl BitAndAssign for BitVec
impl BitAndAssign for BitVec
Source§fn bitand_assign(&mut self, rhs: BitVec)
fn bitand_assign(&mut self, rhs: BitVec)
Performs the
&= operation. Read moreSource§impl BitOrAssign<&BitVec> for BitVec
impl BitOrAssign<&BitVec> for BitVec
Source§fn bitor_assign(&mut self, rhs: &BitVec)
fn bitor_assign(&mut self, rhs: &BitVec)
Performs the
|= operation. Read moreSource§impl BitOrAssign for BitVec
impl BitOrAssign for BitVec
Source§fn bitor_assign(&mut self, rhs: BitVec)
fn bitor_assign(&mut self, rhs: BitVec)
Performs the
|= operation. Read moreSource§impl BitXorAssign<&BitVec> for BitVec
impl BitXorAssign<&BitVec> for BitVec
Source§fn bitxor_assign(&mut self, rhs: &BitVec)
fn bitxor_assign(&mut self, rhs: &BitVec)
Performs the
^= operation. Read moreSource§impl BitXorAssign for BitVec
impl BitXorAssign for BitVec
Source§fn bitxor_assign(&mut self, rhs: BitVec)
fn bitxor_assign(&mut self, rhs: BitVec)
Performs the
^= operation. Read moreSource§impl<'de> Deserialize<'de> for BitVec
impl<'de> Deserialize<'de> for BitVec
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BitVec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BitVec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl DivAssign<&BitVec> for BitVec
impl DivAssign<&BitVec> for BitVec
Source§fn div_assign(&mut self, rhs: &BitVec)
fn div_assign(&mut self, rhs: &BitVec)
Performs the
/= operation. Read moreSource§impl DivAssign for BitVec
impl DivAssign for BitVec
Source§fn div_assign(&mut self, rhs: BitVec)
fn div_assign(&mut self, rhs: BitVec)
Performs the
/= operation. Read moreSource§impl IntoAddress for &BitVec
impl IntoAddress for &BitVec
fn into_address(self, space: &AddressSpace) -> Address
fn into_address_value(self, space: &AddressSpace) -> AddressValue
Source§impl IntoAddress for BitVec
impl IntoAddress for BitVec
fn into_address(self, space: &AddressSpace) -> Address
fn into_address_value(self, space: &AddressSpace) -> AddressValue
Source§impl MulAssign<&BitVec> for BitVec
impl MulAssign<&BitVec> for BitVec
Source§fn mul_assign(&mut self, rhs: &BitVec)
fn mul_assign(&mut self, rhs: &BitVec)
Performs the
*= operation. Read moreSource§impl MulAssign for BitVec
impl MulAssign for BitVec
Source§fn mul_assign(&mut self, rhs: BitVec)
fn mul_assign(&mut self, rhs: BitVec)
Performs the
*= operation. Read moreSource§impl Ord for BitVec
impl Ord for BitVec
Source§impl PartialOrd for BitVec
impl PartialOrd for BitVec
Source§impl RemAssign<&BitVec> for BitVec
impl RemAssign<&BitVec> for BitVec
Source§fn rem_assign(&mut self, rhs: &BitVec)
fn rem_assign(&mut self, rhs: &BitVec)
Performs the
%= operation. Read moreSource§impl RemAssign for BitVec
impl RemAssign for BitVec
Source§fn rem_assign(&mut self, rhs: BitVec)
fn rem_assign(&mut self, rhs: BitVec)
Performs the
%= operation. Read moreSource§impl Serialize for BitVec
impl Serialize for BitVec
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl ShlAssign<&BitVec> for BitVec
impl ShlAssign<&BitVec> for BitVec
Source§fn shl_assign(&mut self, rhs: &BitVec)
fn shl_assign(&mut self, rhs: &BitVec)
Performs the
<<= operation. Read moreSource§impl ShlAssign<u32> for BitVec
impl ShlAssign<u32> for BitVec
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
Performs the
<<= operation. Read moreSource§impl ShlAssign for BitVec
impl ShlAssign for BitVec
Source§fn shl_assign(&mut self, rhs: BitVec)
fn shl_assign(&mut self, rhs: BitVec)
Performs the
<<= operation. Read moreSource§impl ShrAssign<&BitVec> for BitVec
impl ShrAssign<&BitVec> for BitVec
Source§fn shr_assign(&mut self, rhs: &BitVec)
fn shr_assign(&mut self, rhs: &BitVec)
Performs the
>>= operation. Read moreSource§impl ShrAssign<u32> for BitVec
impl ShrAssign<u32> for BitVec
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
Performs the
>>= operation. Read moreSource§impl ShrAssign for BitVec
impl ShrAssign for BitVec
Source§fn shr_assign(&mut self, rhs: BitVec)
fn shr_assign(&mut self, rhs: BitVec)
Performs the
>>= operation. Read moreSource§impl SubAssign<&BitVec> for BitVec
impl SubAssign<&BitVec> for BitVec
Source§fn sub_assign(&mut self, rhs: &BitVec)
fn sub_assign(&mut self, rhs: &BitVec)
Performs the
-= operation. Read moreSource§impl SubAssign for BitVec
impl SubAssign for BitVec
Source§fn sub_assign(&mut self, rhs: BitVec)
fn sub_assign(&mut self, rhs: BitVec)
Performs the
-= operation. Read moreSource§impl<'v, 't> TranslatorDisplay<'v, 't> for BitVec
impl<'v, 't> TranslatorDisplay<'v, 't> for BitVec
type Target = BitVecFormatter<'v, 't>
fn display_full( &'v self, fmt: Cow<'t, TranslatorFormatter<'t>>, ) -> <BitVec as TranslatorDisplay<'v, 't>>::Target
fn display_with(&'v self, translator: Option<&'t Translator>) -> Self::Target
impl Eq for BitVec
Auto Trait Implementations§
impl Freeze for BitVec
impl RefUnwindSafe for BitVec
impl Send for BitVec
impl Sync for BitVec
impl Unpin for BitVec
impl UnwindSafe for BitVec
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> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<'z, T, U> IntoSpace<'z, T> for Uwhere
T: FromSpace<'z, U>,
impl<'z, T, U> IntoSpace<'z, T> for Uwhere
T: FromSpace<'z, U>,
fn into_space(self, manager: &SpaceManager) -> T
fn into_space_with(self, arena: &'z IRBuilderArena, manager: &SpaceManager) -> T
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.