pub struct LossReport {
pub lossless: bool,
pub semantic_identity: bool,
pub diagnostics: Vec<PrismDiagnostic>,
}Expand description
Loss report for one parse/encode/reparse cycle.
Fields§
§lossless: boolWhether the whole cycle had no diagnostics and preserved semantic id.
semantic_identity: boolWhether parse and reparse produced the same semantic identity.
diagnostics: Vec<PrismDiagnostic>Diagnostics collected across the cycle.
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
impl Eq for LossReport
Source§impl PartialEq for LossReport
impl PartialEq for LossReport
Source§fn eq(&self, other: &LossReport) -> bool
fn eq(&self, other: &LossReport) -> bool
Tests for
self and other values to be equal, and is used by ==.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