[][src]Struct lib_ruby_parser::nodes::Dstr

pub struct Dstr {
    pub parts: Vec<Node>,
    pub begin_l: Option<Range>,
    pub end_l: Option<Range>,
    pub expression_l: Range,
}

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<Range>

Location of the string begin

"#{foo}"
~

%Q{#{foo}}
~~~
end_l: Option<Range>

Location of the string end

"#{foo}"
       ~

%Q{#{foo}}
         ~
expression_l: Range

Location of the full expression

"#{foo}"
~~~~~~~~

%Q{#{foo}}
~~~~~~~~~~

Trait Implementations

impl Clone for Dstr[src]

impl Debug for Dstr[src]

impl PartialEq<Dstr> for Dstr[src]

impl StructuralPartialEq for Dstr[src]

Auto Trait Implementations

impl !RefUnwindSafe for Dstr

impl !Send for Dstr

impl !Sync for Dstr

impl Unpin for Dstr

impl UnwindSafe for Dstr

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.