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: Bytes
Byte 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 StringValue
impl Send for StringValue
impl Sync for StringValue
impl Unpin for StringValue
impl UnwindSafe for StringValue
Blanket Implementations
Mutably borrows from an owned value. Read more