Struct relex::TokenCapture [−][src]
Expand description
Represents information for a given capture for a given token.
Fields
text: &'a str
the capture text
start: usize
the start index: relative to the token text (i.e., not absolute within the source string)
end: usize
the end index: relative to the token text (i.e., not absolute within the source string)
Trait Implementations
impl<'a> Debug for TokenCapture<'a>
[src]
impl<'a> Debug for TokenCapture<'a>
[src]impl<'a> PartialEq<TokenCapture<'a>> for TokenCapture<'a>
[src]
impl<'a> PartialEq<TokenCapture<'a>> for TokenCapture<'a>
[src]fn eq(&self, other: &TokenCapture<'a>) -> bool
[src]
fn eq(&self, other: &TokenCapture<'a>) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &TokenCapture<'a>) -> bool
[src]
fn ne(&self, other: &TokenCapture<'a>) -> bool
[src]This method tests for !=
.