macro_rules! include {
($name: ident, $feature: literal) => {
#[cfg(feature = $feature)]
mod $name;
#[cfg(feature = $feature)]
pub use $name::*;
};
}
include!(p_owo_colors, "content_proc_owo_colors");
#[derive(Debug, Clone, Copy, Eq, PartialEq, Ord, PartialOrd, Hash)]
pub struct BareBonesContentProcessor {}
impl BareBonesContentProcessor {
pub fn new() -> Self {
Self {}
}
}
impl crate::ContentProcessor<String> for BareBonesContentProcessor {
fn process(&mut self, character: char, _style: &crate::Style) -> String {
format!("{}", character)
}
}