Struct ruby_prism::XStringNode
source · pub struct XStringNode<'pr> { /* private fields */ }
Expand description
Represents an xstring literal with no interpolation.
`foo`
^^^^^
Implementations§
source§impl<'pr> XStringNode<'pr>
impl<'pr> XStringNode<'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 opening_loc(&self) -> Location<'pr>
pub fn opening_loc(&self) -> 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) -> Location<'pr>
pub fn closing_loc(&self) -> Location<'pr>
Returns the closing_loc
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for XStringNode<'pr>
impl<'pr> !Send for XStringNode<'pr>
impl<'pr> !Sync for XStringNode<'pr>
impl<'pr> Unpin for XStringNode<'pr>
impl<'pr> !UnwindSafe for XStringNode<'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