Skip to main content

InterpolatedRegularExpressionNode

Struct InterpolatedRegularExpressionNode 

Source
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>

Source

pub const fn as_node(&self) -> Node<'pr>

Converts this node to a generic node.

Source

pub fn location(&self) -> Location<'pr>

Returns the location of this node.

Source

pub fn flags(&self) -> pm_node_flags_t

Returns the flags of this node.

Source

pub fn is_ignore_case(&self) -> bool

i - ignores the case of characters when matching

Source

pub fn is_extended(&self) -> bool

x - ignores whitespace and allows comments in regular expressions

Source

pub fn is_multi_line(&self) -> bool

m - allows $ to match the end of lines within strings

Source

pub fn is_once(&self) -> bool

o - only interpolates values into the regular expression once

Source

pub fn is_euc_jp(&self) -> bool

e - forces the EUC-JP encoding

Source

pub fn is_ascii_8bit(&self) -> bool

n - forces the ASCII-8BIT encoding

Source

pub fn is_windows_31j(&self) -> bool

s - forces the Windows-31J encoding

Source

pub fn is_utf_8(&self) -> bool

u - forces the UTF-8 encoding

Source

pub fn is_forced_utf8_encoding(&self) -> bool

internal bytes forced the encoding to UTF-8

Source

pub fn is_forced_binary_encoding(&self) -> bool

internal bytes forced the encoding to binary

Source

pub fn is_forced_us_ascii_encoding(&self) -> bool

internal bytes forced the encoding to US-ASCII

Source

pub fn opening_loc(&self) -> Location<'pr>

Returns the opening_loc param

Source

pub fn parts(&self) -> NodeList<'pr>

Returns the parts param

Source

pub fn closing_loc(&self) -> Location<'pr>

Returns the closing_loc param

Trait Implementationsยง

Sourceยง

impl Debug for InterpolatedRegularExpressionNode<'_>

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementationsยง

Blanket Implementationsยง

Sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

Sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

Sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = !

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Sourceยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.