use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
#[cfg_attr(feature = "wasm", derive(tsify_next::Tsify))]
#[cfg_attr(feature = "wasm", tsify(into_wasm_abi, from_wasm_abi))]
pub enum ExtensionCategory {
Overlay,
Inline,
}
impl ExtensionCategory {
#[must_use]
pub const fn is_overlay(self) -> bool {
matches!(self, Self::Overlay)
}
#[must_use]
pub const fn is_inline(self) -> bool {
matches!(self, Self::Inline)
}
}
#[cfg(test)]
#[path = "category_tests.rs"]
mod tests;