Struct regex_syntax::ast::ClassSetRange [−][src]
A single character class range in a set.
Fields
span: Span
The span of this range.
start: Literal
The start of this range.
end: Literal
The end of this range.
Methods
impl ClassSetRange[src]
impl ClassSetRangepub fn is_valid(&self) -> bool[src]
pub fn is_valid(&self) -> boolReturns true if and only if this character class range is valid.
The only case where a range is invalid is if its start is greater than its end.
Trait Implementations
impl Clone for ClassSetRange[src]
impl Clone for ClassSetRangefn clone(&self) -> ClassSetRange[src]
fn clone(&self) -> ClassSetRangeReturns 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 ClassSetRange[src]
impl Debug for ClassSetRangefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for ClassSetRange[src]
impl Eq for ClassSetRangeimpl PartialEq for ClassSetRange[src]
impl PartialEq for ClassSetRangefn eq(&self, other: &ClassSetRange) -> bool[src]
fn eq(&self, other: &ClassSetRange) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ClassSetRange) -> bool[src]
fn ne(&self, other: &ClassSetRange) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for ClassSetRange
impl Send for ClassSetRangeimpl Sync for ClassSetRange
impl Sync for ClassSetRange