Function rsass::compile_value
source · [−]Expand description
Parse a scss value from a buffer and write its css representation in the given format.
Example
assert_eq!(compile_value(b"10px + 4px", Default::default())?, b"14px");
assert_eq!(compile_value(b"10px 4px", Default::default())?, b"10px 4px");