Struct lib_ruby_parser::nodes::Dsym
source · #[repr(C)]pub struct Dsym {
pub parts: Vec<Node>,
pub begin_l: Option<Loc>,
pub end_l: Option<Loc>,
pub expression_l: Loc,
}
Expand description
Represents a symbol with interpolation (i.e. :"#{foo}"
)
Fields§
§parts: Vec<Node>
A list of symbol parts (static literals and interpolated expressions)
begin_l: Option<Loc>
Location of the symbol begin
:"#{foo}"
~~
None
if Dsym
is a part of the interpolated symbol array:
%I[#{bar}]
end_l: Option<Loc>
Location of the symbol begin
:"#{foo}"
~
None
if Dsym
is a part of the interpolated symbol array:
%I[#{bar}]
expression_l: Loc
Location of the full expression
:"#{foo}"
~~~~~~~~~
Trait Implementations§
source§impl PartialEq for Dsym
impl PartialEq for Dsym
impl StructuralPartialEq for Dsym
Auto Trait Implementations§
impl Freeze for Dsym
impl RefUnwindSafe for Dsym
impl Send for Dsym
impl Sync for Dsym
impl Unpin for Dsym
impl UnwindSafe for Dsym
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