pub struct LossReport { /* private fields */ }Expand description
Everything the conversion changed or discarded, in document order.
Implementations§
Source§impl LossReport
impl LossReport
Sourcepub fn is_lossless(&self) -> bool
pub fn is_lossless(&self) -> bool
Whether the conversion carried the whole document across untouched.
Sourcepub fn discarded_data(&self) -> bool
pub fn discarded_data(&self) -> bool
Whether any loss actually discarded data, as opposed to warning about
data that was kept (see LossKind::discards_data).
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Whether no losses were recorded; the same question as
is_lossless.
Trait Implementations§
Source§impl Clone for LossReport
impl Clone for LossReport
Source§fn clone(&self) -> LossReport
fn clone(&self) -> LossReport
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 LossReport
impl Debug for LossReport
Source§impl Default for LossReport
impl Default for LossReport
Source§fn default() -> LossReport
fn default() -> LossReport
Returns the “default value” for a type. Read more
Source§impl Display for LossReport
impl Display for LossReport
impl Eq for LossReport
Source§impl<'a> IntoIterator for &'a LossReport
impl<'a> IntoIterator for &'a LossReport
Source§impl PartialEq for LossReport
impl PartialEq for LossReport
impl StructuralPartialEq for LossReport
Auto Trait Implementations§
impl Freeze for LossReport
impl RefUnwindSafe for LossReport
impl Send for LossReport
impl Sync for LossReport
impl Unpin for LossReport
impl UnsafeUnpin for LossReport
impl UnwindSafe for LossReport
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