pub struct ConformanceMatrix { /* private fields */ }Expand description
Shared conformance matrix keyed by language symbol.
Rows preserve registration order and are unique by language symbol. The
matrix owns row metadata and case definitions only; execution lives in
MatrixRunner and language-specific runners.
Implementations§
Source§impl ConformanceMatrix
impl ConformanceMatrix
Sourcepub fn register(&mut self, row: LanguageRow)
pub fn register(&mut self, row: LanguageRow)
Sourcepub fn language_count(&self) -> usize
pub fn language_count(&self) -> usize
Number of registered languages.
Sourcepub fn row(&self, language: &Symbol) -> Option<&LanguageRow>
pub fn row(&self, language: &Symbol) -> Option<&LanguageRow>
Returns the row for language, if registered.
Sourcepub fn iter_rows(&self) -> impl Iterator<Item = &LanguageRow>
pub fn iter_rows(&self) -> impl Iterator<Item = &LanguageRow>
Iterates rows in registration order.
Sourcepub fn total_cases(&self) -> usize
pub fn total_cases(&self) -> usize
Total source cases across all registered languages.
Sourcepub fn total_expr_cases(&self) -> usize
pub fn total_expr_cases(&self) -> usize
Total expression round-trip cases across all registered languages.
Trait Implementations§
Source§impl Default for ConformanceMatrix
impl Default for ConformanceMatrix
Source§fn default() -> ConformanceMatrix
fn default() -> ConformanceMatrix
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConformanceMatrix
impl RefUnwindSafe for ConformanceMatrix
impl Send for ConformanceMatrix
impl Sync for ConformanceMatrix
impl Unpin for ConformanceMatrix
impl UnsafeUnpin for ConformanceMatrix
impl UnwindSafe for ConformanceMatrix
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