Struct regex::prog::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 InstRangespub fn matches(&self, c: Char) -> bool[src]
pub fn matches(&self, c: Char) -> boolTests whether the given input character matches this instruction.
pub fn num_chars(&self) -> usize[src]
pub fn num_chars(&self) -> usizeReturn the number of distinct characters represented by all of the ranges.
Trait Implementations
impl Clone for InstRanges[src]
impl Clone for InstRangesfn clone(&self) -> InstRanges[src]
fn clone(&self) -> InstRangesReturns 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 InstRangesAuto Trait Implementations
impl Send for InstRanges
impl Send for InstRangesimpl Sync for InstRanges
impl Sync for InstRanges