pub struct ScannedFile {
pub fragments: Vec<ScannedFragment>,
pub unannotated: Vec<usize>,
}Expand description
One fragment file as its claiming engine read it.
Fields§
§fragments: Vec<ScannedFragment>The entries carrying a # @proef annotation — the referenceable ones.
unannotated: Vec<usize>1-based start lines of entries carrying no annotation.
Lines only, and deliberately so. An unannotated entry is not a fragment
— nothing can ref: it — and a corpus proef did not write is expected to
be mostly those, so building a whole ScannedFragment for each would
be the bulk of a scan for no one’s benefit. A line number costs a push
and is all a listing can point at, there being no name to print.
Collected rather than dropped because “which entries did I forget to annotate?” is otherwise unanswerable: a missing annotation produces a green run and a silently absent test, and the entry that would prove it was never built.
Trait Implementations§
Source§impl Clone for ScannedFile
impl Clone for ScannedFile
Source§fn clone(&self) -> ScannedFile
fn clone(&self) -> ScannedFile
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 ScannedFile
impl Debug for ScannedFile
Source§impl Default for ScannedFile
impl Default for ScannedFile
Source§fn default() -> ScannedFile
fn default() -> ScannedFile
Returns the “default value” for a type. Read more
impl Eq for ScannedFile
Source§impl PartialEq for ScannedFile
impl PartialEq for ScannedFile
impl StructuralPartialEq for ScannedFile
Auto Trait Implementations§
impl Freeze for ScannedFile
impl RefUnwindSafe for ScannedFile
impl Send for ScannedFile
impl Sync for ScannedFile
impl Unpin for ScannedFile
impl UnsafeUnpin for ScannedFile
impl UnwindSafe for ScannedFile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.