pub enum Associativity {
Strict,
Weak,
}Expand description
Associativity type for monoidal structure.
Variants§
Strict
Strict associativity: (A ⊗ B) ⊗ C = A ⊗ (B ⊗ C)
Weak
Weak associativity: (A ⊗ B) ⊗ C ≅ A ⊗ (B ⊗ C)
Trait Implementations§
Source§impl Clone for Associativity
impl Clone for Associativity
Source§fn clone(&self) -> Associativity
fn clone(&self) -> Associativity
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 Debug for Associativity
impl Debug for Associativity
Source§impl Default for Associativity
impl Default for Associativity
Source§fn default() -> Associativity
fn default() -> Associativity
Returns the “default value” for a type. Read more
Source§impl PartialEq for Associativity
impl PartialEq for Associativity
impl Eq for Associativity
impl StructuralPartialEq for Associativity
Auto Trait Implementations§
impl Freeze for Associativity
impl RefUnwindSafe for Associativity
impl Send for Associativity
impl Sync for Associativity
impl Unpin for Associativity
impl UnwindSafe for Associativity
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