pub struct DynInteger<T: Sized + Copy + BiserdiTraitVarBitSize + AddAssign + Shl<Output = T> + Shr + Ord + PartialEq + IntegerBaseFunctions + Default, const MAX_BITS: u8, const BIT_PACKS: u8> {
pub val: T,
}
Fields§
§val: T
Implementations§
Trait Implementations§
Source§impl<T: Display + Sized + Copy + BiserdiTraitVarBitSize + AddAssign + Shl<Output = T> + Shr + Ord + PartialEq + TryFrom<u64> + IntegerBaseFunctions + Default, const MAX_BITS: u8, const BIT_PACKS: u8> BiserdiTrait for DynInteger<T, MAX_BITS, BIT_PACKS>
impl<T: Display + Sized + Copy + BiserdiTraitVarBitSize + AddAssign + Shl<Output = T> + Shr + Ord + PartialEq + TryFrom<u64> + IntegerBaseFunctions + Default, const MAX_BITS: u8, const BIT_PACKS: u8> BiserdiTrait for DynInteger<T, MAX_BITS, BIT_PACKS>
Source§impl<T: Clone + Sized + Copy + BiserdiTraitVarBitSize + AddAssign + Shl<Output = T> + Shr + Ord + PartialEq + IntegerBaseFunctions + Default, const MAX_BITS: u8, const BIT_PACKS: u8> Clone for DynInteger<T, MAX_BITS, BIT_PACKS>
impl<T: Clone + Sized + Copy + BiserdiTraitVarBitSize + AddAssign + Shl<Output = T> + Shr + Ord + PartialEq + IntegerBaseFunctions + Default, const MAX_BITS: u8, const BIT_PACKS: u8> Clone for DynInteger<T, MAX_BITS, BIT_PACKS>
Source§fn clone(&self) -> DynInteger<T, MAX_BITS, BIT_PACKS>
fn clone(&self) -> DynInteger<T, MAX_BITS, BIT_PACKS>
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 + Sized + Copy + BiserdiTraitVarBitSize + AddAssign + Shl<Output = T> + Shr + Ord + PartialEq + IntegerBaseFunctions + Default, const MAX_BITS: u8, const BIT_PACKS: u8> Debug for DynInteger<T, MAX_BITS, BIT_PACKS>
impl<T: Debug + Sized + Copy + BiserdiTraitVarBitSize + AddAssign + Shl<Output = T> + Shr + Ord + PartialEq + IntegerBaseFunctions + Default, const MAX_BITS: u8, const BIT_PACKS: u8> Debug for DynInteger<T, MAX_BITS, BIT_PACKS>
Source§impl<T: Default + Sized + Copy + BiserdiTraitVarBitSize + AddAssign + Shl<Output = T> + Shr + Ord + PartialEq + IntegerBaseFunctions + Default, const MAX_BITS: u8, const BIT_PACKS: u8> Default for DynInteger<T, MAX_BITS, BIT_PACKS>
impl<T: Default + Sized + Copy + BiserdiTraitVarBitSize + AddAssign + Shl<Output = T> + Shr + Ord + PartialEq + IntegerBaseFunctions + Default, const MAX_BITS: u8, const BIT_PACKS: u8> Default for DynInteger<T, MAX_BITS, BIT_PACKS>
Source§fn default() -> DynInteger<T, MAX_BITS, BIT_PACKS>
fn default() -> DynInteger<T, MAX_BITS, BIT_PACKS>
Returns the “default value” for a type. Read more
Source§impl<T: Display + Sized + Copy + BiserdiTraitVarBitSize + AddAssign + Shl<Output = T> + Shr + Ord + PartialEq + TryFrom<u64> + IntegerBaseFunctions + Default, const MAX_BITS: u8, const BIT_PACKS: u8> Display for DynInteger<T, MAX_BITS, BIT_PACKS>
impl<T: Display + Sized + Copy + BiserdiTraitVarBitSize + AddAssign + Shl<Output = T> + Shr + Ord + PartialEq + TryFrom<u64> + IntegerBaseFunctions + Default, const MAX_BITS: u8, const BIT_PACKS: u8> Display for DynInteger<T, MAX_BITS, BIT_PACKS>
Source§impl<T: Display + Sized + Copy + BiserdiTraitVarBitSize + AddAssign + Shl<Output = T> + Shr + Ord + PartialEq + TryFrom<u64> + Default + IntegerBaseFunctions, const MAX_BITS: u8, const BIT_PACKS: u8> From<T> for DynInteger<T, MAX_BITS, BIT_PACKS>
impl<T: Display + Sized + Copy + BiserdiTraitVarBitSize + AddAssign + Shl<Output = T> + Shr + Ord + PartialEq + TryFrom<u64> + Default + IntegerBaseFunctions, const MAX_BITS: u8, const BIT_PACKS: u8> From<T> for DynInteger<T, MAX_BITS, BIT_PACKS>
Source§impl<T: PartialEq + Sized + Copy + BiserdiTraitVarBitSize + AddAssign + Shl<Output = T> + Shr + Ord + PartialEq + IntegerBaseFunctions + Default, const MAX_BITS: u8, const BIT_PACKS: u8> PartialEq for DynInteger<T, MAX_BITS, BIT_PACKS>
impl<T: PartialEq + Sized + Copy + BiserdiTraitVarBitSize + AddAssign + Shl<Output = T> + Shr + Ord + PartialEq + IntegerBaseFunctions + Default, const MAX_BITS: u8, const BIT_PACKS: u8> PartialEq for DynInteger<T, MAX_BITS, BIT_PACKS>
Source§fn eq(&self, other: &DynInteger<T, MAX_BITS, BIT_PACKS>) -> bool
fn eq(&self, other: &DynInteger<T, MAX_BITS, BIT_PACKS>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<T: Display + Sized + Copy + BiserdiTraitVarBitSize + AddAssign + Shl<Output = T> + Shr + Ord + PartialEq + TryFrom<u64> + Default + IntegerBaseFunctions, const MAX_BITS: u8, const BIT_PACKS: u8> ValFromInto<T> for DynInteger<T, MAX_BITS, BIT_PACKS>
impl<T: Display + Sized + Copy + BiserdiTraitVarBitSize + AddAssign + Shl<Output = T> + Shr + Ord + PartialEq + TryFrom<u64> + Default + IntegerBaseFunctions, const MAX_BITS: u8, const BIT_PACKS: u8> ValFromInto<T> for DynInteger<T, MAX_BITS, BIT_PACKS>
impl<T: Copy + Sized + Copy + BiserdiTraitVarBitSize + AddAssign + Shl<Output = T> + Shr + Ord + PartialEq + IntegerBaseFunctions + Default, const MAX_BITS: u8, const BIT_PACKS: u8> Copy for DynInteger<T, MAX_BITS, BIT_PACKS>
impl<T: Eq + Sized + Copy + BiserdiTraitVarBitSize + AddAssign + Shl<Output = T> + Shr + Ord + PartialEq + IntegerBaseFunctions + Default, const MAX_BITS: u8, const BIT_PACKS: u8> Eq for DynInteger<T, MAX_BITS, BIT_PACKS>
impl<T: Sized + Copy + BiserdiTraitVarBitSize + AddAssign + Shl<Output = T> + Shr + Ord + PartialEq + IntegerBaseFunctions + Default, const MAX_BITS: u8, const BIT_PACKS: u8> StructuralPartialEq for DynInteger<T, MAX_BITS, BIT_PACKS>
Auto Trait Implementations§
impl<T, const MAX_BITS: u8, const BIT_PACKS: u8> Freeze for DynInteger<T, MAX_BITS, BIT_PACKS>where
T: Freeze,
impl<T, const MAX_BITS: u8, const BIT_PACKS: u8> RefUnwindSafe for DynInteger<T, MAX_BITS, BIT_PACKS>where
T: RefUnwindSafe,
impl<T, const MAX_BITS: u8, const BIT_PACKS: u8> Send for DynInteger<T, MAX_BITS, BIT_PACKS>where
T: Send,
impl<T, const MAX_BITS: u8, const BIT_PACKS: u8> Sync for DynInteger<T, MAX_BITS, BIT_PACKS>where
T: Sync,
impl<T, const MAX_BITS: u8, const BIT_PACKS: u8> Unpin for DynInteger<T, MAX_BITS, BIT_PACKS>where
T: Unpin,
impl<T, const MAX_BITS: u8, const BIT_PACKS: u8> UnwindSafe for DynInteger<T, MAX_BITS, BIT_PACKS>where
T: UnwindSafe,
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