pub struct DebugLexMatcher {
pub order: f64,
pub matcher: String,
pub make: String,
}Expand description
One lexer matcher, in priority order.
The Rust engine enumerates only CUSTOM matchers; the built-in
matchers appear as enable flags under DebugConfigInfo::lex
instead — the same limit the Go port documents. make is the Go
analogue of the TypeScript factory name and has no Rust counterpart
(function values carry no name), so it is always empty.
Fields§
§order: f64Priority (lower runs first).
Kept as f64, the engine’s own type: priorities are not
necessarily whole, and truncating would report 1.2 and 1.8 as
the same matcher order. The canonical TypeScript field is a plain
JavaScript number, so this matches it; the Go port’s int is a Go
engine limit.
matcher: StringRegistered matcher name.
make: StringMatcher function name, when recoverable.
Trait Implementations§
Source§impl Clone for DebugLexMatcher
impl Clone for DebugLexMatcher
Source§impl Debug for DebugLexMatcher
impl Debug for DebugLexMatcher
Source§impl PartialEq for DebugLexMatcher
impl PartialEq for DebugLexMatcher
Source§impl Serialize for DebugLexMatcher
impl Serialize for DebugLexMatcher
impl StructuralPartialEq for DebugLexMatcher
Auto Trait Implementations§
impl Forget for DebugLexMatcher
impl Freeze for DebugLexMatcher
impl Move for DebugLexMatcher
impl RefUnwindSafe for DebugLexMatcher
impl Send for DebugLexMatcherwhere
RawVecInner: Send,
impl Sync for DebugLexMatcherwhere
RawVecInner: Sync,
impl Unpin for DebugLexMatcher
impl UnsafeUnpin for DebugLexMatcher
impl UnwindSafe for DebugLexMatcherwhere
RawVecInner: UnwindSafe,
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