Struct solang_parser::pt::StringLiteral
source · pub struct StringLiteral {
pub loc: Loc,
pub unicode: bool,
pub string: String,
}Expand description
A string literal.
[unicode]"<string>"
Fields§
§loc: LocThe code location.
unicode: boolWhether this is a unicode string.
string: StringThe string literal.
Does not contain the quotes or the unicode prefix.
Trait Implementations§
source§impl Clone for StringLiteral
impl Clone for StringLiteral
source§fn clone(&self) -> StringLiteral
fn clone(&self) -> StringLiteral
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl CodeLocation for StringLiteral
impl CodeLocation for StringLiteral
source§impl Debug for StringLiteral
impl Debug for StringLiteral
source§impl Display for StringLiteral
impl Display for StringLiteral
source§impl OptionalCodeLocation for StringLiteral
impl OptionalCodeLocation for StringLiteral
source§impl PartialEq<StringLiteral> for StringLiteral
impl PartialEq<StringLiteral> for StringLiteral
source§fn eq(&self, other: &StringLiteral) -> bool
fn eq(&self, other: &StringLiteral) -> bool
This method tests for
self and other values to be equal, and is used
by ==.