Struct lib_ruby_parser::nodes::Xstr [−][src]
#[repr(C)]pub struct Xstr { pub parts: Vec<Node>, pub begin_l: Loc, pub end_l: Loc, pub expression_l: Loc, }
Expand description
Represents an executable string (i.e. `sh #{script_name}`
)
Fields
parts: Vec<Node>
A list of string parts (static literals and interpolated expressions)
begin_l: Loc
Location of the string begin
`#{foo}`
~
%X{#{foo}}
~~~
end_l: Loc
Location of the string end
`#{foo}`
~
%X{#{foo}}
~
expression_l: Loc
Location of the full expression
`#{foo}`
~~~~~~~~
%X{#{foo}}
~~~~~~~~~~
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Xstr
impl UnwindSafe for Xstr
Blanket Implementations
Mutably borrows from an owned value. Read more