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: Loc
The code location.
unicode: bool
Whether this is a unicode string.
string: String
The 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 for StringLiteral
impl PartialEq 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 ==
.impl Eq for StringLiteral
impl StructuralEq for StringLiteral
impl StructuralPartialEq for StringLiteral
Auto Trait Implementations§
impl RefUnwindSafe for StringLiteral
impl Send for StringLiteral
impl Sync for StringLiteral
impl Unpin for StringLiteral
impl UnwindSafe for StringLiteral
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more