Struct lib_ruby_parser::nodes::Dstr [−][src]
#[repr(C)]pub struct Dstr { pub parts: Vec<Node>, pub begin_l: Option<Loc>, pub end_l: Option<Loc>, pub expression_l: Loc, }
Expand description
Represents a string with interpolation (i.e. "#{foo}")
Fields
parts: Vec<Node>A list of string parts (static literals and interpolated expressions)
begin_l: Option<Loc>Location of the string begin
"#{foo}"
~
%Q{#{foo}}
~~~
end_l: Option<Loc>Location of the string end
"#{foo}"
~
%Q{#{foo}}
~
expression_l: LocLocation of the full expression
"#{foo}"
~~~~~~~~
%Q{#{foo}}
~~~~~~~~~~
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Dstrimpl UnwindSafe for DstrBlanket Implementations
Mutably borrows from an owned value. Read more