Struct regex_automata::nfa::thompson::compiler::ThompsonRef
source · pub(crate) struct ThompsonRef {
pub(crate) start: StateID,
pub(crate) end: StateID,
}
Expand description
A value that represents the result of compiling a sub-expression of a
regex’s HIR. Specifically, this represents a sub-graph of the NFA that
has an initial state at start
and a final state at end
.
Fields§
§start: StateID
§end: StateID
Trait Implementations§
source§impl Clone for ThompsonRef
impl Clone for ThompsonRef
source§fn clone(&self) -> ThompsonRef
fn clone(&self) -> ThompsonRef
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ThompsonRef
impl Debug for ThompsonRef
impl Copy for ThompsonRef
Auto Trait Implementations§
impl Freeze for ThompsonRef
impl RefUnwindSafe for ThompsonRef
impl Send for ThompsonRef
impl Sync for ThompsonRef
impl Unpin for ThompsonRef
impl UnwindSafe for ThompsonRef
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