Struct lib_ruby_parser::StringValue [−][src]
#[repr(C)]pub struct StringValue { pub bytes: Bytes, }
Expand description
Representation of the value of the string literal
In Ruby string literals don’t have to be valid in their encoding. Because of that we don’t even try to convert them into string. Instead, they are emitted as byte arrays that (if you want) can be converted to a string.
Fields
bytes: BytesByte array, can be converted to a string
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for StringValueimpl Send for StringValueimpl Sync for StringValueimpl Unpin for StringValueimpl UnwindSafe for StringValueBlanket Implementations
Mutably borrows from an owned value. Read more