pub struct AdobeCompatRule {
pub id: AdobeCompatRuleId,
pub category: AdobeCompatCategory,
pub phase: AdobeCompatPhase,
pub status: AdobeCompatStatus,
pub statement: &'static str,
pub positive_examples: &'static [DocumentRef],
pub counterexamples: &'static [DocumentRef],
pub source_docs: &'static [&'static str],
pub related_tests: &'static [&'static str],
pub trace_reason: Option<&'static str>,
}Expand description
Metadata for a single Adobe compatibility rule.
Fields§
§id: AdobeCompatRuleIdStable typed rule identifier.
category: AdobeCompatCategoryRule category.
phase: AdobeCompatPhasePhase where the behavior is observed.
status: AdobeCompatStatusLifecycle status.
statement: &'static strOne-line behavior statement.
positive_examples: &'static [DocumentRef]Documents where this rule is positive evidence.
counterexamples: &'static [DocumentRef]Documents where naive application of this rule would be wrong.
source_docs: &'static [&'static str]Report/source documents supporting the rule.
Tests or intended tests related to the rule.
trace_reason: Option<&'static str>Optional M1 trace reason tag for future runtime linkage.
Implementations§
Source§impl AdobeCompatRule
impl AdobeCompatRule
Sourcepub fn stable_summary(&self) -> String
pub fn stable_summary(&self) -> String
Stable single-line metadata rendering for tests and reports.
Trait Implementations§
Source§impl Clone for AdobeCompatRule
impl Clone for AdobeCompatRule
Source§fn clone(&self) -> AdobeCompatRule
fn clone(&self) -> AdobeCompatRule
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 AdobeCompatRule
impl Debug for AdobeCompatRule
Source§impl PartialEq for AdobeCompatRule
impl PartialEq for AdobeCompatRule
Source§fn eq(&self, other: &AdobeCompatRule) -> bool
fn eq(&self, other: &AdobeCompatRule) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AdobeCompatRule
impl Eq for AdobeCompatRule
impl StructuralPartialEq for AdobeCompatRule
Auto Trait Implementations§
impl Freeze for AdobeCompatRule
impl RefUnwindSafe for AdobeCompatRule
impl Send for AdobeCompatRule
impl Sync for AdobeCompatRule
impl Unpin for AdobeCompatRule
impl UnsafeUnpin for AdobeCompatRule
impl UnwindSafe for AdobeCompatRule
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more