Skip to main content

ConformanceMatrix

Struct ConformanceMatrix 

Source
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

Source

pub fn new() -> Self

Creates an empty matrix.

Source

pub fn register(&mut self, row: LanguageRow)

Registers a language row.

§Panics

Panics when the language symbol is already registered.

Source

pub fn language_count(&self) -> usize

Number of registered languages.

Source

pub fn row(&self, language: &Symbol) -> Option<&LanguageRow>

Returns the row for language, if registered.

Source

pub fn iter_rows(&self) -> impl Iterator<Item = &LanguageRow>

Iterates rows in registration order.

Source

pub fn total_cases(&self) -> usize

Total source cases across all registered languages.

Source

pub fn total_expr_cases(&self) -> usize

Total expression round-trip cases across all registered languages.

Trait Implementations§

Source§

impl Default for ConformanceMatrix

Source§

fn default() -> ConformanceMatrix

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.