pub struct File<'input> {
pub comment: Vec<Cow<'input, str>>,
pub attributes: Vec<Loc<Attribute<'input>>>,
pub uses: Vec<Loc<UseDecl<'input>>>,
pub decls: Vec<Decl<'input>>,
}
Expand description
A file.
ⓘ
<uses>
<options>
<decls>
Fields§
§comment: Vec<Cow<'input, str>>
§attributes: Vec<Loc<Attribute<'input>>>
§uses: Vec<Loc<UseDecl<'input>>>
§decls: Vec<Decl<'input>>
Trait Implementations§
impl<'input> Eq for File<'input>
impl<'input> StructuralPartialEq for File<'input>
Auto Trait Implementations§
impl<'input> Freeze for File<'input>
impl<'input> RefUnwindSafe for File<'input>
impl<'input> Send for File<'input>
impl<'input> Sync for File<'input>
impl<'input> Unpin for File<'input>
impl<'input> UnwindSafe for File<'input>
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