Enum rslint_regex::Node [−][src]
The tree structure that is used to represent parsed RegEx patterns.
Variants
An empty regex node.
An "either or". (e.g. a|b
)
Assertion(Span, AssertionKind)
A single assertion.
A concatenation of regex nodes. (e.g. ab
)
A single character literal. The String represents the raw string representing the literal which is used to turn the node back into a string without writing explicit newlines for example.
PerlClass(Span, ClassPerlKind, bool)
Matches a character class (e.g. \d
or \w
).
The bool argument indicates if this perl class is negated.
A back reference to a previous group (\1
, \2
, ...).
Dot(Span)
A .
that matches everything.
CharacterClass(Span, CharacterClass)
A class of multiple characters such as [A-Z0-9]
A grouped pattern
Quantifier(Span, Box<Node>, QuantifierKind, bool)
A quantifier which optionally matches or matches multiple times.
bool
indicates whether a lazy quantifier (?
) is present after it.
A reference to a group using a name
Implementations
impl Node
[src]
pub fn expanded_nodes(&mut self) -> Box<dyn Iterator<Item = &mut Node>>
[src]
pub fn span(&self) -> Option<Span>
[src]
Trait Implementations
impl Clone for Node
[src]
impl Debug for Node
[src]
impl Eq for Node
[src]
impl PartialEq<Node> for Node
[src]
impl StructuralEq for Node
[src]
impl StructuralPartialEq for Node
[src]
impl ToString for Node
[src]
Auto Trait Implementations
impl RefUnwindSafe for Node
[src]
impl Send for Node
[src]
impl Sync for Node
[src]
impl Unpin for Node
[src]
impl UnwindSafe for Node
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,