pub struct Verified {
pub source: RawContentId,
pub span: Span,
pub elided: RawContentId,
pub elided_len: u64,
pub source_len: u64,
}Expand description
What a successful verification establishes — the facts a report renders.
Returned rather than a bare bool so a caller (and newt frame explain)
reports what was checked, not merely that something was.
Fields§
§source: RawContentIdThe source, confirmed by hashing the supplied bytes.
span: SpanThe range within it that resolved.
elided: RawContentIdThe re-derived material, confirmed equal to the unit’s claim.
elided_len: u64How many bytes the span covered.
source_len: u64Total size of the source.
Trait Implementations§
impl Copy for Verified
impl Eq for Verified
impl StructuralPartialEq for Verified
Auto Trait Implementations§
impl Freeze for Verified
impl RefUnwindSafe for Verified
impl Send for Verified
impl Sync for Verified
impl Unpin for Verified
impl UnsafeUnpin for Verified
impl UnwindSafe for Verified
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