pub struct ParserFeatureProfile {
pub pure_rust: bool,
pub tree_sitter_standard: bool,
pub tree_sitter_c2rust: bool,
pub glr: bool,
}Expand description
Re-exported governance reporting primitives (BDD grid, parser profiles, report helpers). Snapshot of parser-related feature flags for this build.
Fields§
§pure_rust: boolpure-rust feature is enabled.
tree_sitter_standard: booltree-sitter-standard feature is enabled.
tree_sitter_c2rust: booltree-sitter-c2rust feature is enabled.
glr: boolglr feature is enabled.
Implementations§
Source§impl ParserFeatureProfile
impl ParserFeatureProfile
Sourcepub const fn current() -> ParserFeatureProfile
pub const fn current() -> ParserFeatureProfile
Snapshot of active feature flags for the current crate compilation.
Sourcepub const fn resolve_backend(self, has_conflicts: bool) -> ParserBackend
pub const fn resolve_backend(self, has_conflicts: bool) -> ParserBackend
Resolve the effective backend from this profile.
Sourcepub const fn backend_selection_contract(
self,
has_conflicts: bool,
) -> ParserBackendSelection
pub const fn backend_selection_contract( self, has_conflicts: bool, ) -> ParserBackendSelection
Resolution contract for this profile and conflict condition.
Exposed for test-surface and migration checks that need to compare panic-vs. backend-returning behavior without matching panic strings.
Sourcepub const fn has_pure_rust(self) -> bool
pub const fn has_pure_rust(self) -> bool
Whether feature flags indicate the pure-Rust runtime is compiled in.
Sourcepub const fn has_tree_sitter(self) -> bool
pub const fn has_tree_sitter(self) -> bool
Whether feature flags indicate any tree-sitter backend is compiled in.
Trait Implementations§
Source§impl Clone for ParserFeatureProfile
impl Clone for ParserFeatureProfile
Source§fn clone(&self) -> ParserFeatureProfile
fn clone(&self) -> ParserFeatureProfile
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 ParserFeatureProfile
impl Debug for ParserFeatureProfile
Source§impl Display for ParserFeatureProfile
impl Display for ParserFeatureProfile
Source§impl Hash for ParserFeatureProfile
impl Hash for ParserFeatureProfile
Source§impl PartialEq for ParserFeatureProfile
impl PartialEq for ParserFeatureProfile
impl Copy for ParserFeatureProfile
impl Eq for ParserFeatureProfile
impl StructuralPartialEq for ParserFeatureProfile
Auto Trait Implementations§
impl Freeze for ParserFeatureProfile
impl RefUnwindSafe for ParserFeatureProfile
impl Send for ParserFeatureProfile
impl Sync for ParserFeatureProfile
impl Unpin for ParserFeatureProfile
impl UnsafeUnpin for ParserFeatureProfile
impl UnwindSafe for ParserFeatureProfile
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