#[derive(Copy, Clone, PartialEq, Eq, Debug)]
pub enum Arity {
One,
Many,
}
impl Arity {
pub fn combine(self, other: Self) -> Self {
if self == Self::One && other == Self::One {
return Self::One;
}
Self::Many
}
pub fn is_one(self) -> bool {
self == Self::One
}
pub fn is_many(self) -> bool {
self == Self::Many
}
}