pub struct Facts {
pub declarations: Vec<Declaration>,
pub test_only_declarations: Vec<Span>,
pub imports: Vec<Import>,
pub references: Vec<Reference>,
pub contracts: Vec<Contract>,
pub diagnostics: Vec<ParseDiagnostic>,
}Expand description
Everything one structural pass found in one file.
Fields§
§declarations: Vec<Declaration>§test_only_declarations: Vec<Span>Exact spans of declarations that exist only in a test compilation.
Keeping this sparse avoids enlarging every declaration in every
language. Rust fills it from #[test] and positive #[cfg(test)]
contexts; languages without compile-time test scopes leave it empty.
imports: Vec<Import>§references: Vec<Reference>§contracts: Vec<Contract>§diagnostics: Vec<ParseDiagnostic>Implementations§
Trait Implementations§
impl Eq for Facts
impl StructuralPartialEq for Facts
Auto Trait Implementations§
impl Freeze for Facts
impl RefUnwindSafe for Facts
impl Send for Facts
impl Sync for Facts
impl Unpin for Facts
impl UnsafeUnpin for Facts
impl UnwindSafe for Facts
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