pub struct File {
pub doc: Doc,
pub pragma_once: bool,
pub includes: Vec<Include>,
pub decls: Vec<Decl>,
}Expand description
A C++ header or source file.
Fields§
§doc: DocThe leading comment.
pragma_once: boolWhether the file opens with #pragma once.
includes: Vec<Include>#include lines, in written order.
decls: Vec<Decl>Declarations at file scope, in written order.
Trait Implementations§
impl Eq for File
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