mrml/conditional_comment/mod.rs
1#[cfg(feature = "json")]
2mod json;
3#[cfg(feature = "print")]
4mod print;
5#[cfg(feature = "render")]
6mod render;
7
8#[derive(Clone, Debug, Default)]
9pub struct ConditionalComment(String);
10
11impl ConditionalComment {
12 pub fn inner_str(&self) -> &str {
13 &self.0
14 }
15}
16
17impl<V: Into<String>> From<V> for ConditionalComment {
18 fn from(value: V) -> Self {
19 Self(value.into())
20 }
21}