Struct lib_ruby_parser::nodes::Xstr
source · [−]#[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
impl StructuralPartialEq for Xstr
Auto Trait Implementations
impl RefUnwindSafe for Xstr
impl Send for Xstr
impl Sync for Xstr
impl Unpin for Xstr
impl UnwindSafe for Xstr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more