Enum regex::expand::Ref[][src]

enum Ref<'a> {
    Named(&'a str),
    Number(usize),
}

A reference to a capture group in some text.

e.g., $2, $foo, ${foo}.

Variants

Trait Implementations

impl<'a> Clone for Ref<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Copy for Ref<'a>
[src]

impl<'a> Debug for Ref<'a>
[src]

Formats the value using the given formatter. Read more

impl<'a> Eq for Ref<'a>
[src]

impl<'a> PartialEq for Ref<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> From<&'a str> for Ref<'a>
[src]

Performs the conversion.

impl From<usize> for Ref<'static>
[src]

Performs the conversion.

Auto Trait Implementations

impl<'a> Send for Ref<'a>

impl<'a> Sync for Ref<'a>