[−][src]Struct abstalg::ModularInts
The ring of signed integers modulo 2^n
whose elements are stored in a
primitive signed integer type. The ring operations on these sets wrap
around. This structure is equivalent to the quotient ring of the set of
integers modulo 2^n
, but its implementation is more efficient.
Trait Implementations
impl<E> Domain for ModularInts<E> where
E: PrimInt + Signed + WrappingAdd + WrappingMul + WrappingSub + Debug + From<i8>,
[src]
E: PrimInt + Signed + WrappingAdd + WrappingMul + WrappingSub + Debug + From<i8>,
type Elem = E
The type of the elements of this domain.
fn contains(&self, _elem: &Self::Elem) -> bool
[src]
impl<E> UnitaryRing for ModularInts<E> where
E: PrimInt + Signed + WrappingAdd + WrappingMul + WrappingSub + Debug + From<i8>,
[src]
E: PrimInt + Signed + WrappingAdd + WrappingMul + WrappingSub + Debug + From<i8>,
fn zero(&self) -> Self::Elem
[src]
fn is_zero(&self, elem: &Self::Elem) -> bool
[src]
fn neg(&self, elem: &Self::Elem) -> Self::Elem
[src]
fn add(&self, elem1: &Self::Elem, elem2: &Self::Elem) -> Self::Elem
[src]
fn one(&self) -> Self::Elem
[src]
fn is_one(&self, elem: &Self::Elem) -> bool
[src]
fn mul(&self, elem1: &Self::Elem, elem2: &Self::Elem) -> Self::Elem
[src]
fn sub(&self, elem1: &Self::Elem, elem2: &Self::Elem) -> Self::Elem
[src]
Auto Trait Implementations
impl<E> RefUnwindSafe for ModularInts<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for ModularInts<E> where
E: Send,
E: Send,
impl<E> Sync for ModularInts<E> where
E: Sync,
E: Sync,
impl<E> Unpin for ModularInts<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for ModularInts<E> where
E: UnwindSafe,
E: 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,
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, 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.
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>,