pub struct ValidationReport { /* private fields */ }Expand description
Bounded result of checking a complete edit set without applying it.
Implementations§
Source§impl ValidationReport
impl ValidationReport
Sourcepub const fn is_valid(&self) -> bool
pub const fn is_valid(&self) -> bool
Returns true when the full checked set had no validation failures.
Sourcepub fn diagnostics(&self) -> &[EditError]
pub fn diagnostics(&self) -> &[EditError]
Diagnostics retained under DiagnosticLimits::max_items.
Sourcepub const fn total_diagnostics(&self) -> usize
pub const fn total_diagnostics(&self) -> usize
Total failures observed, including omitted diagnostics.
Sourcepub const fn is_truncated(&self) -> bool
pub const fn is_truncated(&self) -> bool
Returns true when some observed diagnostics were omitted.
Trait Implementations§
Source§impl Clone for ValidationReport
impl Clone for ValidationReport
Source§fn clone(&self) -> ValidationReport
fn clone(&self) -> ValidationReport
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 ValidationReport
impl Debug for ValidationReport
impl Eq for ValidationReport
Source§impl PartialEq for ValidationReport
impl PartialEq for ValidationReport
Source§impl Serialize for ValidationReport
impl Serialize for ValidationReport
impl StructuralPartialEq for ValidationReport
Auto Trait Implementations§
impl Freeze for ValidationReport
impl RefUnwindSafe for ValidationReport
impl Send for ValidationReport
impl Sync for ValidationReport
impl Unpin for ValidationReport
impl UnsafeUnpin for ValidationReport
impl UnwindSafe for ValidationReport
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