pub struct Lean4File {
pub module_doc: Option<String>,
pub imports: Vec<String>,
pub opens: Vec<String>,
pub declarations: Vec<Lean4Decl>,
}Expand description
A complete Lean 4 source file.
Fields§
§module_doc: Option<String>Module documentation comment
imports: Vec<String>Import statements: import Mathlib.Data.Nat.Basic
opens: Vec<String>open statements: open Nat List
declarations: Vec<Lean4Decl>Top-level declarations
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lean4File
impl RefUnwindSafe for Lean4File
impl Send for Lean4File
impl Sync for Lean4File
impl Unpin for Lean4File
impl UnsafeUnpin for Lean4File
impl UnwindSafe for Lean4File
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