#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
pub enum Inheritance {
None,
SubEq,
Super,
}
impl Inheritance {
#[inline]
pub fn is_none(self) -> bool {
self == Inheritance::None
}
#[inline]
pub fn is_sub_eq(self) -> bool {
self == Inheritance::SubEq
}
#[inline]
pub fn is_super(self) -> bool {
self == Inheritance::Super
}
}