use std::borrow::Cow;
pub enum ContentCmp<'a> {
Comparable(Vec<Cow<'a, [u8]>>),
Incomparable,
Same,
}
impl PartialEq for ContentCmp<'_> {
fn eq(&self, other: &Self) -> bool {
use ContentCmp::*;
match (self, other) {
(Comparable(c1), Comparable(c2)) => c1 == c2,
(Same, Same) => true,
_ => false,
}
}
}