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: Loc
Location of the full expression
"#{foo}"
~~~~~~~~
%Q{#{foo}}
~~~~~~~~~~
Implementations
Returns begin_l
field
Returns expression_l
field
Sets begin_l
field
Sets expression_l
field
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Dstr
impl UnwindSafe for Dstr
Blanket Implementations
Mutably borrows from an owned value. Read more