Struct lib_ruby_parser::nodes::Dstr [−][src]
#[repr(C)]pub struct Dstr { pub parts: List<Node>, pub begin_l: MaybeLoc, pub end_l: MaybeLoc, pub expression_l: Loc, }
Represents a string with interpolation (i.e. "#{foo}")
Fields
parts: List<Node>A list of string parts (static literals and interpolated expressions)
begin_l: MaybeLocLocation of the string begin
"#{foo}"
~
%Q{#{foo}}
~~~
end_l: MaybeLocLocation of the string end
"#{foo}"
~
%Q{#{foo}}
~
expression_l: LocLocation 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,