pub struct File {
pub doc: Doc,
pub package: Option<Path>,
pub imports: Vec<Import>,
pub types: Vec<TypeDecl>,
}Expand description
A Java source file, which holds one public type.
Fields§
§doc: DocThe leading comment.
package: Option<Path>The package, absent for the default package.
imports: Vec<Import>import lines, in written order.
types: Vec<TypeDecl>Type declarations; the first is the file’s public type.
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