#[non_exhaustive]pub struct LexicalExtractorReceipt {
pub schema_version: u32,
pub bodies: Vec<BodyExtractionResult>,
pub total_read_count: usize,
pub total_write_count: usize,
pub skipped_node_count: usize,
pub provider_behavior_changed: bool,
}Expand description
Receipt from the lexical extractor, summarizing all bindings extracted from a file.
This is distinct from PirReceipt, which models lowering stats.
LexicalExtractorReceipt is a compiler-substrate proof surface: it records what the
extractor found, not what the lowerer did.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.schema_version: u32Schema version (currently 1).
bodies: Vec<BodyExtractionResult>Per-body extraction results, in order.
total_read_count: usizeTotal count of lexical reads across all bodies.
total_write_count: usizeTotal count of lexical writes across all bodies.
skipped_node_count: usizeCount of operations skipped (Modify, StashModify).
provider_behavior_changed: boolWhether provider behavior changed (always false for PR1).
Trait Implementations§
Source§impl Clone for LexicalExtractorReceipt
impl Clone for LexicalExtractorReceipt
Source§fn clone(&self) -> LexicalExtractorReceipt
fn clone(&self) -> LexicalExtractorReceipt
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 LexicalExtractorReceipt
impl Debug for LexicalExtractorReceipt
impl Eq for LexicalExtractorReceipt
Source§impl PartialEq for LexicalExtractorReceipt
impl PartialEq for LexicalExtractorReceipt
Source§fn eq(&self, other: &LexicalExtractorReceipt) -> bool
fn eq(&self, other: &LexicalExtractorReceipt) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LexicalExtractorReceipt
Auto Trait Implementations§
impl Freeze for LexicalExtractorReceipt
impl RefUnwindSafe for LexicalExtractorReceipt
impl Send for LexicalExtractorReceipt
impl Sync for LexicalExtractorReceipt
impl Unpin for LexicalExtractorReceipt
impl UnsafeUnpin for LexicalExtractorReceipt
impl UnwindSafe for LexicalExtractorReceipt
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