use crate::plugin::CURRENT_WIT_WORLD;
use std::fmt::{Debug, Formatter};
#[derive(Clone, Copy, Eq, Hash, PartialEq)]
pub(in crate::plugin) struct PluginWitWorld(());
impl PluginWitWorld {
#[must_use]
pub const fn current() -> Self {
Self(())
}
#[must_use]
pub const fn as_str(self) -> &'static str {
match self {
Self(()) => CURRENT_WIT_WORLD,
}
}
}
impl Debug for PluginWitWorld {
fn fmt(&self, formatter: &mut Formatter<'_>) -> std::fmt::Result {
self.as_str().fmt(formatter)
}
}