pub struct FormatCoverage { /* private fields */ }Expand description
Structural formatter coverage over modeled constructs.
This is not a normalized ratio: one construct can produce multiple edit candidates, and on an already-canonical corpus most modeled constructs are no-ops.
Implementations§
Source§impl FormatCoverage
impl FormatCoverage
Sourcepub const fn edit_candidates(self) -> usize
pub const fn edit_candidates(self) -> usize
Count of structural edit candidates the formatter would apply.
Sourcepub const fn modeled_constructs(self) -> usize
pub const fn modeled_constructs(self) -> usize
Count of modeled constructs walked by the coverage metric.
Trait Implementations§
Source§impl Clone for FormatCoverage
impl Clone for FormatCoverage
Source§fn clone(&self) -> FormatCoverage
fn clone(&self) -> FormatCoverage
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 moreimpl Copy for FormatCoverage
Source§impl Debug for FormatCoverage
impl Debug for FormatCoverage
impl Eq for FormatCoverage
Source§impl PartialEq for FormatCoverage
impl PartialEq for FormatCoverage
Source§fn eq(&self, other: &FormatCoverage) -> bool
fn eq(&self, other: &FormatCoverage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FormatCoverage
Auto Trait Implementations§
impl Freeze for FormatCoverage
impl RefUnwindSafe for FormatCoverage
impl Send for FormatCoverage
impl Sync for FormatCoverage
impl Unpin for FormatCoverage
impl UnsafeUnpin for FormatCoverage
impl UnwindSafe for FormatCoverage
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.