pub struct RecordDamage { /* private fields */ }Expand description
A model’s reader diagnostics, sorted into what a resolution must refuse.
Implementations§
Source§impl RecordDamage
impl RecordDamage
Sourcepub fn of(model: &Model) -> Result<Self, UnclassifiedDiagnostic>
pub fn of(model: &Model) -> Result<Self, UnclassifiedDiagnostic>
Classify model’s diagnostics by kind.
§Errors
UnclassifiedDiagnostic for the first diagnostic of a kind other
than skipped record, duplicate id, dangling reference or REAL without
a point, and for a skipped record or duplicate id that names no
record.
Sourcepub fn reported(&self, id: EntityId) -> Option<usize>
pub fn reported(&self, id: EntityId) -> Option<usize>
Position in Model::diagnostics of the first diagnostic naming id.
Sourcepub fn records_lost(&self) -> bool
pub fn records_lost(&self) -> bool
Whether a record was skipped, so an absent record may have existed.
Sourcepub fn held_id_skipped(&self) -> bool
pub fn held_id_skipped(&self) -> bool
Whether a skipped record names an id a kept record holds. Such a skip may have swallowed later records (#668).
Sourcepub fn diagnostics(&self) -> usize
pub fn diagnostics(&self) -> usize
How many diagnostics the model carries.
Trait Implementations§
Source§impl Clone for RecordDamage
impl Clone for RecordDamage
Source§fn clone(&self) -> RecordDamage
fn clone(&self) -> RecordDamage
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 RecordDamage
impl Debug for RecordDamage
impl Eq for RecordDamage
Source§impl PartialEq for RecordDamage
impl PartialEq for RecordDamage
impl StructuralPartialEq for RecordDamage
Auto Trait Implementations§
impl Freeze for RecordDamage
impl RefUnwindSafe for RecordDamage
impl Send for RecordDamage
impl Sync for RecordDamage
impl Unpin for RecordDamage
impl UnsafeUnpin for RecordDamage
impl UnwindSafe for RecordDamage
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