Struct ruby_prism::InterpolatedStringNode
source · pub struct InterpolatedStringNode<'pr> { /* private fields */ }
Expand description
Represents a string literal that contains interpolation.
"foo #{bar} baz"
^^^^^^^^^^^^^^^^
Implementations§
source§impl<'pr> InterpolatedStringNode<'pr>
impl<'pr> InterpolatedStringNode<'pr>
sourcepub fn flags(&self) -> pm_node_flags_t
pub fn flags(&self) -> pm_node_flags_t
Returns the flags of this node.
sourcepub fn is_frozen(&self) -> bool
pub fn is_frozen(&self) -> bool
frozen by virtue of a frozen_string_literal: true
comment or --enable-frozen-string-literal
; only for adjacent string literals like 'a' 'b'
sourcepub fn is_mutable(&self) -> bool
pub fn is_mutable(&self) -> bool
mutable by virtue of a frozen_string_literal: false
comment or --disable-frozen-string-literal
; only for adjacent string literals like 'a' 'b'
sourcepub fn opening_loc(&self) -> Option<Location<'pr>>
pub fn opening_loc(&self) -> Option<Location<'pr>>
Returns the opening_loc
param
sourcepub fn closing_loc(&self) -> Option<Location<'pr>>
pub fn closing_loc(&self) -> Option<Location<'pr>>
Returns the closing_loc
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for InterpolatedStringNode<'pr>
impl<'pr> !Send for InterpolatedStringNode<'pr>
impl<'pr> !Sync for InterpolatedStringNode<'pr>
impl<'pr> Unpin for InterpolatedStringNode<'pr>
impl<'pr> !UnwindSafe for InterpolatedStringNode<'pr>
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