use std::fmt;
pub trait Cfg {
fn with_idents() -> bool;
}
#[derive(Clone, Copy)]
pub struct StaticCfg<const WITH_IDENTS: bool>;
impl<const WITH_IDENTS: bool> fmt::Debug for StaticCfg<WITH_IDENTS> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("StaticCfg").field("with_idents", &WITH_IDENTS).finish()
}
}
impl<const WITH_IDENTS: bool> Cfg for StaticCfg<WITH_IDENTS> {
fn with_idents() -> bool {
WITH_IDENTS
}
}
pub type Full = StaticCfg<true>;
pub type Slim = StaticCfg<false>;