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