pub struct Analysis {
pub total: Counts,
pub repetitions: Counts,
pub matches: Counts,
}
Expand description
Wrapper around the different elements common in a translation analysis
Fields§
§total: Counts
The plain total counts. Not taking repetitions or matches into account.
repetitions: Counts
The counts for repeated segments. Given a hashment vector only containing 2 identical hashments, the total counts will be 2 and the repetitions will be 1 (as the second segment is a repeat of the first).
matches: Counts
The counts for segments matched with the translation memory.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Analysis
impl<'de> Deserialize<'de> for Analysis
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Analysis
impl RefUnwindSafe for Analysis
impl Send for Analysis
impl Sync for Analysis
impl Unpin for Analysis
impl UnwindSafe for Analysis
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