#[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: LocLocation of the string begin
`#{foo}`
~
%X{#{foo}}
~~~end_l: LocLocation of the string end
`#{foo}`
~
%X{#{foo}}
~expression_l: LocLocation of the full expression
`#{foo}`
~~~~~~~~
%X{#{foo}}
~~~~~~~~~~Trait Implementations§
impl StructuralPartialEq for Xstr
Auto Trait Implementations§
impl Freeze for Xstr
impl RefUnwindSafe for Xstr
impl Send for Xstr
impl Sync for Xstr
impl Unpin for Xstr
impl UnwindSafe for Xstr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more