Struct xswag_syntax_java::ast::CompilationUnit [] [src]

pub struct CompilationUnit {
    pub package: Option<Path>,
    pub imports: Vec<Import>,
    pub types: Vec<TypeDef>,
}

A Java compilation unit. This is the goal symbol for the syntactic grammar.

Fields

package: Option<Path> imports: Vec<Import> types: Vec<TypeDef>

Trait Implementations

impl Clone for CompilationUnit
[src]

fn clone(&self) -> CompilationUnit

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for CompilationUnit
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.