Struct clang::Module [] [src]

pub struct Module<'tu> {
    // some fields omitted
}

A collection of headers.

Methods

impl<'tu> Module<'tu>
[src]

fn get_file(&self) -> File<'tu>

Returns the AST file this module came from.

fn get_full_name(&self) -> String

Returns the full name of this module (e.g., std.vector for the std.vector module).

fn get_name(&self) -> String

Returns the name of this module (e.g., vector for the std.vector module).

fn get_parent(&self) -> Option<Module<'tu>>

Returns the parent of this module, if any.

fn get_top_level_headers(&self) -> Vec<File<'tu>>

Returns the top-level headers in this module.

fn is_system(&self) -> bool

Returns whether this module is a system module.

Trait Implementations

impl<'tu> Clone for Module<'tu>
[src]

fn clone(&self) -> Module<'tu>

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<'tu> Copy for Module<'tu>
[src]

impl<'tu> Eq for Module<'tu>
[src]

impl<'tu> PartialEq for Module<'tu>
[src]

fn eq(&self, other: &Module<'tu>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl<'tu> Debug for Module<'tu>
[src]

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

Formats the value using the given formatter.