pub struct TextCoverage {
pub total_chars: usize,
pub captured_chars: usize,
pub files: Vec<FileTextCoverage>,
}Expand description
How much of the document’s visible text the reader actually captures
into translatable blocks. Text that lives outside the recognized block
elements (for example directly inside <div>) is parsed over but never
extracted, and ships untranslated; this metric makes that visible
before any tokens are spent.
Fields§
§total_chars: usize§captured_chars: usize§files: Vec<FileTextCoverage>Implementations§
Trait Implementations§
Source§impl Clone for TextCoverage
impl Clone for TextCoverage
Source§fn clone(&self) -> TextCoverage
fn clone(&self) -> TextCoverage
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 TextCoverage
impl Debug for TextCoverage
Source§impl Default for TextCoverage
impl Default for TextCoverage
Source§fn default() -> TextCoverage
fn default() -> TextCoverage
Returns the “default value” for a type. Read more
impl Eq for TextCoverage
Source§impl PartialEq for TextCoverage
impl PartialEq for TextCoverage
Source§fn eq(&self, other: &TextCoverage) -> bool
fn eq(&self, other: &TextCoverage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TextCoverage
Auto Trait Implementations§
impl Freeze for TextCoverage
impl RefUnwindSafe for TextCoverage
impl Send for TextCoverage
impl Sync for TextCoverage
impl Unpin for TextCoverage
impl UnsafeUnpin for TextCoverage
impl UnwindSafe for TextCoverage
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.