pub struct LanguageRow {
pub language: Symbol,
pub profile: LanguageProfile,
pub cases: Vec<SourceConformanceCase>,
pub expr_cases: Vec<ExprRoundTripCase>,
}Expand description
A single language surface registered in the shared conformance matrix.
The row contains current conformance evidence for one language profile. Each row uses a stable language symbol, owns the profile metadata for that row, and carries only explicit source or expression cases. An empty row is a declared language entry without scored evidence.
Fields§
§language: SymbolLanguage symbol, for example scheme or lua.
profile: LanguageProfileProfile supplied by the language crate.
cases: Vec<SourceConformanceCase>Source cases registered for this language.
expr_cases: Vec<ExprRoundTripCase>Expression round-trip cases registered for this language.
Implementations§
Source§impl LanguageRow
impl LanguageRow
Sourcepub fn declared_empty(language: Symbol, profile: LanguageProfile) -> Self
pub fn declared_empty(language: Symbol, profile: LanguageProfile) -> Self
Declares a language row with no source cases.
Sourcepub fn with_expr_cases(self, expr_cases: Vec<ExprRoundTripCase>) -> Self
pub fn with_expr_cases(self, expr_cases: Vec<ExprRoundTripCase>) -> Self
Replaces expression round-trip cases for this row.
Trait Implementations§
Source§impl Clone for LanguageRow
impl Clone for LanguageRow
Source§fn clone(&self) -> LanguageRow
fn clone(&self) -> LanguageRow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LanguageRow
impl Debug for LanguageRow
impl Eq for LanguageRow
Source§impl PartialEq for LanguageRow
impl PartialEq for LanguageRow
Source§fn eq(&self, other: &LanguageRow) -> bool
fn eq(&self, other: &LanguageRow) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LanguageRow
Auto Trait Implementations§
impl Freeze for LanguageRow
impl RefUnwindSafe for LanguageRow
impl Send for LanguageRow
impl Sync for LanguageRow
impl Unpin for LanguageRow
impl UnsafeUnpin for LanguageRow
impl UnwindSafe for LanguageRow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.