[][src]Struct lib_ruby_parser::nodes::Regexp

pub struct Regexp {
    pub parts: Vec<Node>,
    pub options: Option<Node>,
    pub begin_l: Range,
    pub end_l: Range,
    pub expression_l: Range,
}

Represents regex literal (e.g. /foo/)

Fields

parts: Vec<Node>

A list of static and dynamic regex parts

options: Option<Node>

Regex options.

None if regex has no explicit flags

begin_l: Range

Location of the regex begin

/foo/
~

%r{foo}
~~
end_l: Range

Location of the regex end

/foo/
    ~

%r{foo}
      ~
expression_l: Range

Location of the full expression

/foo/mix
~~~~~~~~

Trait Implementations

impl Clone for Regexp[src]

impl Debug for Regexp[src]

impl PartialEq<Regexp> for Regexp[src]

impl StructuralPartialEq for Regexp[src]

Auto Trait Implementations

impl RefUnwindSafe for Regexp

impl Send for Regexp

impl Sync for Regexp

impl Unpin for Regexp

impl UnwindSafe for Regexp

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.