Struct regex::internal::InstRanges [−][src]
Representation of the Ranges instruction.
Fields
goto: usize
The next location to execute in the program if this instruction succeeds.
ranges: Vec<(char, char)>
The set of Unicode scalar value ranges to test.
Methods
impl InstRanges
[src]
impl InstRanges
pub fn matches(&self, c: Char) -> bool
[src]
pub fn matches(&self, c: Char) -> bool
Tests whether the given input character matches this instruction.
pub fn num_chars(&self) -> usize
[src]
pub fn num_chars(&self) -> usize
Return the number of distinct characters represented by all of the ranges.
Trait Implementations
impl Clone for InstRanges
[src]
impl Clone for InstRanges
fn clone(&self) -> InstRanges
[src]
fn clone(&self) -> InstRanges
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for InstRanges
[src]
impl Debug for InstRanges
Auto Trait Implementations
impl Send for InstRanges
impl Send for InstRanges
impl Sync for InstRanges
impl Sync for InstRanges