pub struct File {
pub docs: Vec<Doc>,
pub module: Option<Path>,
pub sections: Vec<Section>,
}Expand description
A whole source file.
Fields§
§docs: Vec<Doc>Inner doc comments before the module line: the module documentation.
module: Option<Path>The module line, if present.
sections: Vec<Section>Sections in the order they are written.
Trait Implementations§
impl StructuralPartialEq for File
Auto Trait Implementations§
impl Freeze for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnsafeUnpin for File
impl UnwindSafe for File
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