0

I am creating a SWC plugin using rust. I have a JSXAttrValue enum. How to get a string from it?

fn visit_mut_jsx_attr_value(&mut self, n: &mut JSXAttrValue) {
    let value = ?????;        
}

I need the ability to compare "value" with a string or write to a file.

The same question on the rust forum.

xamgore
  • 1,723
  • 1
  • 15
  • 30
Roman
  • 175
  • 2
  • 3
  • 15
  • What kind of string do you want to retrieve? Could you provide some examples of input and output? – xamgore Apr 29 '23 at 10:53

0 Answers0