Enum algae_rs::mapping::PropertyType
source · pub enum PropertyType<'a, T> {
Commutative,
Abelian,
Associative,
Cancellative,
WithIdentity(T),
Invertible(T, &'a dyn Fn(T, T) -> T),
}Variants§
Implementations§
source§impl<'a, T: Copy + PartialEq> PropertyType<'a, T>
impl<'a, T: Copy + PartialEq> PropertyType<'a, T>
pub fn holds_over(&self, op: &dyn Fn(T, T) -> T, domain_sample: &Vec<T>) -> bool
Trait Implementations§
source§impl<'a, T> PartialEq<PropertyType<'a, T>> for PropertyType<'a, T>
impl<'a, T> PartialEq<PropertyType<'a, T>> for PropertyType<'a, T>
source§fn eq(&self, other: &PropertyType<'a, T>) -> bool
fn eq(&self, other: &PropertyType<'a, T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.