use codemap::Spanned; use crate::{error::SassResult, interner::InternedString, value::Value}; /// A style: `color: red` #[derive(Clone, Debug)] pub(crate) struct Style { pub property: InternedString, pub value: Box>, } impl Style { pub fn to_string(&self) -> SassResult { Ok(format!( "{}: {};", self.property, self.value.node.to_css_string(self.value.span)? )) } }