use std::fmt;
use super::head_path::HeadAtomPath;
use super::literal_path::LiteralPath;
#[derive(
Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, serde::Serialize, serde::Deserialize,
)]
#[serde(deny_unknown_fields)]
pub enum RuleSite {
Head(HeadAtomPath),
Body(LiteralPath),
}
impl fmt::Display for RuleSite {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Self::Head(path) => path.fmt(f),
Self::Body(path) => path.fmt(f),
}
}
}