pub struct StringNode<'pr> { /* private fields */ }
Expand description
Represents a string literal, a string contained within a %w
list, or plain string content within an interpolated string.
"foo"
^^^^^
%w[foo]
^^^
"foo #{bar} baz"
^^^^ ^^^^
Implementations§
Source§impl<'pr> StringNode<'pr>
impl<'pr> StringNode<'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_forced_utf8_encoding(&self) -> bool
pub fn is_forced_utf8_encoding(&self) -> bool
internal bytes forced the encoding to UTF-8
Sourcepub fn is_forced_binary_encoding(&self) -> bool
pub fn is_forced_binary_encoding(&self) -> bool
internal bytes forced the encoding to binary
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
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
Sourcepub fn opening_loc(&self) -> Option<Location<'pr>>
pub fn opening_loc(&self) -> Option<Location<'pr>>
Returns the opening_loc
param
Sourcepub fn content_loc(&self) -> Location<'pr>
pub fn content_loc(&self) -> Location<'pr>
Returns the content_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> Freeze for StringNode<'pr>
impl<'pr> RefUnwindSafe for StringNode<'pr>
impl<'pr> !Send for StringNode<'pr>
impl<'pr> !Sync for StringNode<'pr>
impl<'pr> Unpin for StringNode<'pr>
impl<'pr> !UnwindSafe for StringNode<'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