pub struct Translation { /* private fields */ }Expand description
Source translation output.
Implementations§
Source§impl Translation
impl Translation
Sourcepub const fn edit_count(&self) -> usize
pub const fn edit_count(&self) -> usize
Number of source ranges replaced by the translation.
Sourcepub fn losses(&self) -> &[TranslationLoss]
pub fn losses(&self) -> &[TranslationLoss]
Losses recorded during translation.
Sourcepub fn diagnostics(&self) -> &[LatexError]
pub fn diagnostics(&self) -> &[LatexError]
Typed diagnostics recorded while translating.
Sourcepub fn is_lossless(&self) -> bool
pub fn is_lossless(&self) -> bool
Whether translation was exact.
Sourcepub fn status(&self) -> TranslationStatus
pub fn status(&self) -> TranslationStatus
Coarse translation outcome.
Trait Implementations§
Source§impl Clone for Translation
impl Clone for Translation
Source§fn clone(&self) -> Translation
fn clone(&self) -> Translation
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 Translation
impl Debug for Translation
Source§impl PartialEq for Translation
impl PartialEq for Translation
Source§fn eq(&self, other: &Translation) -> bool
fn eq(&self, other: &Translation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Translation
impl StructuralPartialEq for Translation
Auto Trait Implementations§
impl Freeze for Translation
impl RefUnwindSafe for Translation
impl Send for Translation
impl Sync for Translation
impl Unpin for Translation
impl UnsafeUnpin for Translation
impl UnwindSafe for Translation
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