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 ClassSetRange
pub fn is_valid(&self) -> bool
[src]
pub fn is_valid(&self) -> bool
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]
impl Clone for ClassSetRange
fn clone(&self) -> ClassSetRange
[src]
fn clone(&self) -> ClassSetRange
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 ClassSetRange
[src]
impl Debug for ClassSetRange
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for ClassSetRange
[src]
impl Eq for ClassSetRange
impl PartialEq for ClassSetRange
[src]
impl PartialEq for ClassSetRange
fn eq(&self, other: &ClassSetRange) -> bool
[src]
fn eq(&self, other: &ClassSetRange) -> bool
This 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) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for ClassSetRange
impl Send for ClassSetRange
impl Sync for ClassSetRange
impl Sync for ClassSetRange