pub enum PatNode {
Show 28 variants
End,
ExcSync,
ExcEnd,
Back(usize),
Exactly(String),
Nothing,
OneHash(Box<PatNode>),
TwoHash(Box<PatNode>),
GFlags(GlobFlags),
IsStart,
IsEnd,
CountStart,
Count {
min: u32,
max: Option<u32>,
node: Box<PatNode>,
},
Branch(Vec<PatNode>, usize),
WBranch(Vec<PatNode>),
Exclude(Vec<PatNode>),
ExcludP(Vec<PatNode>),
Any,
AnyOf(Vec<char>),
AnyBut(Vec<char>),
Star,
NumRng(i64, i64),
NumFrom(i64),
NumTo(i64),
NumAny,
Open(usize),
Close(usize),
Sequence(Vec<PatNode>),
}Expand description
A node in the pattern bytecode
Variants§
End
ExcSync
ExcEnd
Back(usize)
Exactly(String)
Nothing
OneHash(Box<PatNode>)
TwoHash(Box<PatNode>)
GFlags(GlobFlags)
IsStart
IsEnd
CountStart
Count
Branch(Vec<PatNode>, usize)
WBranch(Vec<PatNode>)
Exclude(Vec<PatNode>)
ExcludP(Vec<PatNode>)
Any
AnyOf(Vec<char>)
AnyBut(Vec<char>)
Star
NumRng(i64, i64)
NumFrom(i64)
NumTo(i64)
NumAny
Open(usize)
Close(usize)
Sequence(Vec<PatNode>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PatNode
impl RefUnwindSafe for PatNode
impl Send for PatNode
impl Sync for PatNode
impl Unpin for PatNode
impl UnsafeUnpin for PatNode
impl UnwindSafe for PatNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more