#[repr(C)]pub struct pm_string_node {
pub base: pm_node_t,
pub opening_loc: pm_location_t,
pub content_loc: pm_location_t,
pub closing_loc: pm_location_t,
pub unescaped: pm_string_t,
}
Expand description
StringNode
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"
^^^^ ^^^^
Type: ::PM_STRING_NODE
Flags (#pm_string_flags):
- ::PM_STRING_FLAGS_FORCED_UTF8_ENCODING
- ::PM_STRING_FLAGS_FORCED_BINARY_ENCODING
- ::PM_STRING_FLAGS_FROZEN
- ::PM_STRING_FLAGS_MUTABLE
@extends pm_node_t
Fields§
§base: pm_node_t
The embedded base node.
opening_loc: pm_location_t
StringNode#opening_loc
content_loc: pm_location_t
StringNode#content_loc
closing_loc: pm_location_t
StringNode#closing_loc
unescaped: pm_string_t
StringNode#unescaped
Trait Implementations§
Source§impl Clone for pm_string_node
impl Clone for pm_string_node
Source§fn clone(&self) -> pm_string_node
fn clone(&self) -> pm_string_node
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for pm_string_node
impl Debug for pm_string_node
Source§impl Default for pm_string_node
impl Default for pm_string_node
impl Copy for pm_string_node
Auto Trait Implementations§
impl Freeze for pm_string_node
impl RefUnwindSafe for pm_string_node
impl !Send for pm_string_node
impl !Sync for pm_string_node
impl Unpin for pm_string_node
impl UnwindSafe for pm_string_node
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