Struct regex_syntax::ast::ClassSetRange
[−]
[src]
pub struct ClassSetRange { pub span: Span, pub start: Literal, pub end: Literal, }
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]
pub fn is_valid(&self) -> bool
[src]
Returns 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]
fn clone(&self) -> ClassSetRange
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ClassSetRange
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for ClassSetRange
[src]
impl PartialEq for ClassSetRange
[src]
fn eq(&self, __arg_0: &ClassSetRange) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ClassSetRange) -> bool
[src]
This method tests for !=
.