pub enum CorpusEntry {
Analyzed {
rel_path: String,
report: Box<ShapeReport>,
},
Skipped {
rel_path: String,
reason: String,
},
}Expand description
Outcome of analyzing a single file inside a corpus walk. Files that fail typecheck or parse get the error attached instead of being silently skipped — the corpus view should show what’s broken.
report is boxed because ShapeReport carries the full per-fn
listing — a large size delta between the two variants would inflate
every Vec<CorpusEntry> with padding (clippy’s large_enum_variant).
Variants§
Trait Implementations§
Source§impl Clone for CorpusEntry
impl Clone for CorpusEntry
Source§fn clone(&self) -> CorpusEntry
fn clone(&self) -> CorpusEntry
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 moreAuto Trait Implementations§
impl Freeze for CorpusEntry
impl RefUnwindSafe for CorpusEntry
impl Send for CorpusEntry
impl Sync for CorpusEntry
impl Unpin for CorpusEntry
impl UnsafeUnpin for CorpusEntry
impl UnwindSafe for CorpusEntry
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