pub struct ConformanceReport { /* private fields */ }Expand description
Report of supported and unsupported conformance levels.
Implementations§
Source§impl ConformanceReport
impl ConformanceReport
Sourcepub fn support(self, level: ConformanceLevel) -> Self
pub fn support(self, level: ConformanceLevel) -> Self
Marks a level as supported by the test target.
Sourcepub fn unsupported(self, level: ConformanceLevel) -> Self
pub fn unsupported(self, level: ConformanceLevel) -> Self
Marks a level as explicitly unsupported by the test target.
Sourcepub fn unsupported_with_reason(
self,
level: ConformanceLevel,
reason: impl Into<String>,
) -> Self
pub fn unsupported_with_reason( self, level: ConformanceLevel, reason: impl Into<String>, ) -> Self
Marks a level as explicitly unsupported by the target with a reason.
Sourcepub fn record_check(self, check: ConformanceCheckReport) -> Self
pub fn record_check(self, check: ConformanceCheckReport) -> Self
Records an executed check in this report.
Sourcepub fn supported_levels(&self) -> &BTreeSet<ConformanceLevel>
pub fn supported_levels(&self) -> &BTreeSet<ConformanceLevel>
Returns supported levels.
Sourcepub fn unsupported_levels(&self) -> &BTreeSet<ConformanceLevel>
pub fn unsupported_levels(&self) -> &BTreeSet<ConformanceLevel>
Returns explicitly unsupported levels.
Sourcepub fn unsupported_reasons(&self) -> &BTreeMap<ConformanceLevel, Vec<String>>
pub fn unsupported_reasons(&self) -> &BTreeMap<ConformanceLevel, Vec<String>>
Returns unsupported reasons by conformance level.
Sourcepub fn check_results(&self) -> &[ConformanceCheckReport]
pub fn check_results(&self) -> &[ConformanceCheckReport]
Returns executed check summaries.
Sourcepub fn supports(&self, level: ConformanceLevel) -> bool
pub fn supports(&self, level: ConformanceLevel) -> bool
Returns true if a level is supported.
Trait Implementations§
Source§impl Clone for ConformanceReport
impl Clone for ConformanceReport
Source§fn clone(&self) -> ConformanceReport
fn clone(&self) -> ConformanceReport
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 ConformanceReport
impl Debug for ConformanceReport
Source§impl Default for ConformanceReport
impl Default for ConformanceReport
Source§fn default() -> ConformanceReport
fn default() -> ConformanceReport
Returns the “default value” for a type. Read more
impl Eq for ConformanceReport
Source§impl PartialEq for ConformanceReport
impl PartialEq for ConformanceReport
Source§fn eq(&self, other: &ConformanceReport) -> bool
fn eq(&self, other: &ConformanceReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConformanceReport
Auto Trait Implementations§
impl Freeze for ConformanceReport
impl RefUnwindSafe for ConformanceReport
impl Send for ConformanceReport
impl Sync for ConformanceReport
impl Unpin for ConformanceReport
impl UnsafeUnpin for ConformanceReport
impl UnwindSafe for ConformanceReport
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