pub struct CookedReading {
pub declarations: usize,
pub only_after_expansion: usize,
pub diagnostics: usize,
pub unplaced: usize,
pub mapped: MapReport,
}Expand description
What reading a file the way a compiler reads it produced — see Session::cook.
Counts rather than a summary, because the summary has already gone where it belongs: the index holds the declarations and the errors (that is the point of the call), and what a caller — a status line, a test, a log — wants to know is whether the reading found anything the file’s own text did not, what it had to say about it, and whether every range could be placed.
Fields§
§declarations: usizeHow many declarations the cooked reading found.
only_after_expansion: usizeHow many of them the file’s own text does not declare — the names that exist only after expansion.
diagnostics: usizeHow many errors the parse of the rendering reported and this file can show — see
crate::IndexedRendering::diagnostics.
unplaced: usizeHow many it reported that this file cannot show, because the text they are about is not written here (a grammar error inside another file’s macro body, or a pasted token that exists nowhere).
mapped: MapReportHow the ranges mapped back into the file; see crate::MapReport.
Trait Implementations§
Source§impl Clone for CookedReading
impl Clone for CookedReading
impl Copy for CookedReading
Source§impl Debug for CookedReading
impl Debug for CookedReading
Source§impl Default for CookedReading
impl Default for CookedReading
impl Eq for CookedReading
Source§impl PartialEq for CookedReading
impl PartialEq for CookedReading
impl StructuralPartialEq for CookedReading
Auto Trait Implementations§
impl Forget for CookedReading
impl Freeze for CookedReading
impl RefUnwindSafe for CookedReading
impl Send for CookedReading
impl Sync for CookedReading
impl Unpin for CookedReading
impl UnsafeUnpin for CookedReading
impl UnwindSafe for CookedReading
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
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more