Struct ClassSetRange
pub struct ClassSetRange { pub span: Span, pub start: Literal, pub end: Literal }
A single character class range in a set.
Fields
span: SpanThe span of this range.
start: LiteralThe start of this range.
end: LiteralThe end of this range.
Implementations
impl ClassSetRange
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
fn clone(&self) -> Self
impl Debug for ClassSetRange
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for ClassSetRange
impl PartialEq for ClassSetRange
fn eq(&self, other: &Self) -> bool