stylex_enums/theme_ref.rs
1pub enum ThemeRefResult {
2 CssVar(String),
3 Proxy,
4 #[allow(dead_code)]
5 ToString(String),
6}
7
8impl ThemeRefResult {
9 pub fn as_css_var(&self) -> Option<&String> {
10 match self {
11 ThemeRefResult::CssVar(s) => Some(s),
12 _ => None,
13 }
14 }
15
16 pub fn as_is_proxy(&self) -> Option<()> {
17 match self {
18 ThemeRefResult::Proxy => Some(()),
19 _ => None,
20 }
21 }
22}