#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default)]
pub enum MkIntent {
#[default]
Frame,
Pool,
Heap,
}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct MkTag {
name: &'static str,
}
impl MkTag {
pub const fn new(name: &'static str) -> Self {
Self { name }
}
pub fn name(&self) -> &'static str {
self.name
}
}
impl MkTag {
pub const RENDERING: Self = Self::new("rendering");
pub const PHYSICS: Self = Self::new("physics");
pub const AUDIO: Self = Self::new("audio");
pub const SCRIPTING: Self = Self::new("scripting");
pub const ASSETS: Self = Self::new("assets");
pub const UI: Self = Self::new("ui");
pub const NETWORKING: Self = Self::new("networking");
pub const GENERAL: Self = Self::new("general");
}