use crate::common::*; #[derive(PartialEq, Debug)] pub(crate) struct StringLiteral<'src> { pub(crate) kind: StringKind, pub(crate) raw: &'src str, pub(crate) cooked: String, } impl Display for StringLiteral<'_> { fn fmt(&self, f: &mut Formatter) -> fmt::Result { write!( f, "{}{}{}", self.kind.delimiter(), self.raw, self.kind.delimiter() ) } }