MCPcopy Create free account
hub / github.com/davidblewett/rure-python / Class

Enum Class

regex/regex-syntax/src/ast/mod.rs:715–724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

713/// A single character class expression.
714#[derive(Clone, Debug, Eq, PartialEq)]
715pub enum Class {
716 /// A Unicode character class, e.g., `\pL` or `\p{Greek}`.
717 Unicode(ClassUnicode),
718 /// A perl character class, e.g., `\d` or `\W`.
719 Perl(ClassPerl),
720 /// A bracketed character class set, which may contain zero or more
721 /// character ranges and/or zero or more nested classes. e.g.,
722 /// `[a-zA-Z\pL]`.
723 Bracketed(ClassBracketed),
724}
725
726impl Class {
727 /// Return the span of this character class.

Callers 2

into_astMethod · 0.70
parse_with_commentsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected