Struct GroupApprox

Source
pub struct GroupApprox<S, I>(/* private fields */);

Trait Implementations§

Source§

impl Associative for GroupApprox<(usize, usize), Min>

Source§

fn assert(x: Self::S, y: Self::S, z: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Associative for GroupApprox<i32, Additive>

Source§

fn assert(x: Self::S, y: Self::S, z: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Associative for GroupApprox<i64, Additive>

Source§

fn assert(x: Self::S, y: Self::S, z: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Associative for GroupApprox<u64, Additive>

Source§

fn assert(x: Self::S, y: Self::S, z: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Associative for GroupApprox<u64, Min>

Source§

fn assert(x: Self::S, y: Self::S, z: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Associative for GroupApprox<usize, Additive>

Source§

fn assert(x: Self::S, y: Self::S, z: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Associative for GroupApprox<usize, Min>

Source§

fn assert(x: Self::S, y: Self::S, z: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl BinaryOp for GroupApprox<(usize, usize), Min>

((usize, usize), min)

Source§

type S = (usize, usize)

Source§

fn op(lhs: Self::S, rhs: Self::S) -> Self::S

Source§

impl BinaryOp for GroupApprox<i32, Additive>

(i32, +)

Source§

type S = i32

Source§

fn op(lhs: i32, rhs: i32) -> i32

Source§

impl BinaryOp for GroupApprox<i64, Additive>

(i64, +)

Source§

type S = i64

Source§

fn op(lhs: Self::S, rhs: Self::S) -> Self::S

Source§

impl BinaryOp for GroupApprox<u64, Additive>

(u64, +)

Source§

type S = u64

Source§

fn op(lhs: Self::S, rhs: Self::S) -> Self::S

Source§

impl BinaryOp for GroupApprox<u64, Min>

(u64, min)

Source§

type S = u64

Source§

fn op(lhs: Self::S, rhs: Self::S) -> Self::S

Source§

impl BinaryOp for GroupApprox<usize, Additive>

(usize, +)

Source§

type S = usize

Source§

fn op(lhs: usize, rhs: usize) -> usize

Source§

impl BinaryOp for GroupApprox<usize, Min>

(usize, min)

Source§

type S = usize

Source§

fn op(lhs: usize, rhs: usize) -> usize

Source§

impl<S: Clone, I: Clone> Clone for GroupApprox<S, I>

Source§

fn clone(&self) -> GroupApprox<S, I>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Commutative for GroupApprox<(usize, usize), Min>

Source§

fn assert(a: Self::S, b: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Commutative for GroupApprox<i32, Additive>

Source§

fn assert(a: Self::S, b: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Commutative for GroupApprox<i64, Additive>

Source§

fn assert(a: Self::S, b: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Commutative for GroupApprox<u64, Additive>

Source§

fn assert(a: Self::S, b: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Commutative for GroupApprox<u64, Min>

Source§

fn assert(a: Self::S, b: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Commutative for GroupApprox<usize, Additive>

Source§

fn assert(a: Self::S, b: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Commutative for GroupApprox<usize, Min>

Source§

fn assert(a: Self::S, b: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl<S: Debug, I: Debug> Debug for GroupApprox<S, I>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Idempotence for GroupApprox<(usize, usize), Min>

Source§

fn assert(x: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Idempotence for GroupApprox<u64, Min>

Source§

fn assert(x: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Idempotence for GroupApprox<usize, Min>

Source§

fn assert(x: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Identity for GroupApprox<(usize, usize), Min>

Source§

fn e() -> Self::S

Source§

fn assert(x: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Identity for GroupApprox<i32, Additive>

Source§

fn e() -> Self::S

Source§

fn assert(x: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Identity for GroupApprox<i64, Additive>

Source§

fn e() -> Self::S

Source§

fn assert(x: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Identity for GroupApprox<u64, Additive>

Source§

fn e() -> Self::S

Source§

fn assert(x: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Identity for GroupApprox<u64, Min>

Source§

fn e() -> Self::S

Source§

fn assert(x: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Identity for GroupApprox<usize, Additive>

Source§

fn e() -> Self::S

Source§

fn assert(x: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Identity for GroupApprox<usize, Min>

Source§

fn e() -> Self::S

Source§

fn assert(x: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Inverse for GroupApprox<i32, Additive>

Source§

fn inv(x: i32) -> i32

Source§

fn assert(x: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl Inverse for GroupApprox<i64, Additive>

Source§

fn inv(x: i64) -> i64

Source§

fn assert(x: Self::S)
where Self::S: Clone + PartialEq,

Source§

impl<S: PartialEq, I: PartialEq> PartialEq for GroupApprox<S, I>

Source§

fn eq(&self, other: &GroupApprox<S, I>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<S: Copy, I: Copy> Copy for GroupApprox<S, I>

Source§

impl<S: Eq, I: Eq> Eq for GroupApprox<S, I>

Source§

impl<S, I> StructuralPartialEq for GroupApprox<S, I>

Auto Trait Implementations§

§

impl<S, I> Freeze for GroupApprox<S, I>

§

impl<S, I> RefUnwindSafe for GroupApprox<S, I>

§

impl<S, I> Send for GroupApprox<S, I>
where S: Send, I: Send,

§

impl<S, I> Sync for GroupApprox<S, I>
where S: Sync, I: Sync,

§

impl<S, I> Unpin for GroupApprox<S, I>
where S: Unpin, I: Unpin,

§

impl<S, I> UnwindSafe for GroupApprox<S, I>
where S: UnwindSafe, I: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> AbelianGroup for T
where T: Group + Commutative,

Source§

impl<T> DefaultContext for T

Source§

impl<T> Group for T
where T: Monoid + Inverse,

Source§

impl<T> Id for T

Source§

impl<T> LatinSquare for T
where T: Inverse,

Source§

impl<T> Loop for T
where T: Quasigroup + Identity,

Source§

impl<T> Magma for T
where T: BinaryOp,

Source§

impl<T> Monoid for T
where T: Semigroup + Identity,

Source§

impl<T> Quasigroup for T
where T: Magma + LatinSquare,

Source§

impl<T> Semigroup for T
where T: Magma + Associative,

Source§

impl<T> UnitalMagma for T
where T: Magma + Identity,