#[repr(C)]pub struct pm_interpolated_match_last_line_node {
pub base: pm_node_t,
pub opening_loc: pm_location_t,
pub parts: pm_node_list,
pub closing_loc: pm_location_t,
}
Expand description
InterpolatedMatchLastLineNode
Represents a regular expression literal that contains interpolation that is being used in the predicate of a conditional to implicitly match against the last line read by an IO object.
if /foo #{bar} baz/ then end
^^^^^^^^^^^^^^^^
Type: ::PM_INTERPOLATED_MATCH_LAST_LINE_NODE
Flags (#pm_regular_expression_flags):
- ::PM_REGULAR_EXPRESSION_FLAGS_IGNORE_CASE
- ::PM_REGULAR_EXPRESSION_FLAGS_EXTENDED
- ::PM_REGULAR_EXPRESSION_FLAGS_MULTI_LINE
- ::PM_REGULAR_EXPRESSION_FLAGS_ONCE
- ::PM_REGULAR_EXPRESSION_FLAGS_EUC_JP
- ::PM_REGULAR_EXPRESSION_FLAGS_ASCII_8BIT
- ::PM_REGULAR_EXPRESSION_FLAGS_WINDOWS_31J
- ::PM_REGULAR_EXPRESSION_FLAGS_UTF_8
- ::PM_REGULAR_EXPRESSION_FLAGS_FORCED_UTF8_ENCODING
- ::PM_REGULAR_EXPRESSION_FLAGS_FORCED_BINARY_ENCODING
- ::PM_REGULAR_EXPRESSION_FLAGS_FORCED_US_ASCII_ENCODING
@extends pm_node_t
Fields§
§base: pm_node_t
The embedded base node.
opening_loc: pm_location_t
InterpolatedMatchLastLineNode#opening_loc
parts: pm_node_list
InterpolatedMatchLastLineNode#parts
closing_loc: pm_location_t
InterpolatedMatchLastLineNode#closing_loc
Trait Implementations§
Source§impl Clone for pm_interpolated_match_last_line_node
impl Clone for pm_interpolated_match_last_line_node
Source§fn clone(&self) -> pm_interpolated_match_last_line_node
fn clone(&self) -> pm_interpolated_match_last_line_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 moreimpl Copy for pm_interpolated_match_last_line_node
Auto Trait Implementations§
impl Freeze for pm_interpolated_match_last_line_node
impl RefUnwindSafe for pm_interpolated_match_last_line_node
impl !Send for pm_interpolated_match_last_line_node
impl !Sync for pm_interpolated_match_last_line_node
impl Unpin for pm_interpolated_match_last_line_node
impl UnwindSafe for pm_interpolated_match_last_line_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