mod private {
pub trait Sealed {}
}
pub trait InternalRepr: private::Sealed {}
#[cfg(feature = "serde")]
pub trait HotspotRepr: InternalRepr {
const STRUCT_NAME: &'static str;
}
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
pub struct PixelRepr;
impl private::Sealed for PixelRepr {}
impl InternalRepr for PixelRepr {}
#[cfg(feature = "serde")]
impl HotspotRepr for PixelRepr {
const STRUCT_NAME: &'static str = "HotspotPx";
}
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
pub struct PercentageRepr;
impl private::Sealed for PercentageRepr {}
impl InternalRepr for PercentageRepr {}
#[cfg(feature = "serde")]
impl HotspotRepr for PercentageRepr {
const STRUCT_NAME: &'static str = "HotspotRel";
}