pub struct InterpolatedRegularExpressionNode<'pr> { /* private fields */ }
Expand description
Represents a regular expression literal that contains interpolation.
/foo #{bar} baz/
^^^^^^^^^^^^^^^^
Implementations§
source§impl<'pr> InterpolatedRegularExpressionNode<'pr>
impl<'pr> InterpolatedRegularExpressionNode<'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_ignore_case(&self) -> bool
pub fn is_ignore_case(&self) -> bool
i - ignores the case of characters when matching
sourcepub fn is_extended(&self) -> bool
pub fn is_extended(&self) -> bool
x - ignores whitespace and allows comments in regular expressions
sourcepub fn is_multi_line(&self) -> bool
pub fn is_multi_line(&self) -> bool
m - allows $ to match the end of lines within strings
sourcepub fn is_ascii_8bit(&self) -> bool
pub fn is_ascii_8bit(&self) -> bool
n - forces the ASCII-8BIT encoding
sourcepub fn is_windows_31j(&self) -> bool
pub fn is_windows_31j(&self) -> bool
s - forces the Windows-31J encoding
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_forced_us_ascii_encoding(&self) -> bool
pub fn is_forced_us_ascii_encoding(&self) -> bool
internal bytes forced the encoding to US-ASCII
sourcepub fn opening_loc(&self) -> Location<'pr>
pub fn opening_loc(&self) -> Location<'pr>
Returns the opening_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 InterpolatedRegularExpressionNode<'pr>
impl<'pr> !Send for InterpolatedRegularExpressionNode<'pr>
impl<'pr> !Sync for InterpolatedRegularExpressionNode<'pr>
impl<'pr> Unpin for InterpolatedRegularExpressionNode<'pr>
impl<'pr> !UnwindSafe for InterpolatedRegularExpressionNode<'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