pub enum ParserBackendSelection {
Backend(ParserBackend),
ConflictsRequireGlr,
}Expand description
Contract outcome for backend selection under a given conflict condition.
This keeps behavior assertions in one place across parser and governance contracts without forcing callers to duplicate panic-string checks.
Variants§
Backend(ParserBackend)
A concrete backend can be selected for the current feature set.
ConflictsRequireGlr
Conflict grammars require the glr feature to be enabled.
Trait Implementations§
Source§impl Clone for ParserBackendSelection
impl Clone for ParserBackendSelection
Source§fn clone(&self) -> ParserBackendSelection
fn clone(&self) -> ParserBackendSelection
Returns a duplicate 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 ParserBackendSelection
impl Debug for ParserBackendSelection
Source§impl PartialEq for ParserBackendSelection
impl PartialEq for ParserBackendSelection
impl Copy for ParserBackendSelection
impl Eq for ParserBackendSelection
impl StructuralPartialEq for ParserBackendSelection
Auto Trait Implementations§
impl Freeze for ParserBackendSelection
impl RefUnwindSafe for ParserBackendSelection
impl Send for ParserBackendSelection
impl Sync for ParserBackendSelection
impl Unpin for ParserBackendSelection
impl UnsafeUnpin for ParserBackendSelection
impl UnwindSafe for ParserBackendSelection
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