pub struct Module<'tu> { /* private fields */ }
Expand description
A collection of headers.
Implementations
sourceimpl<'tu> Module<'tu>
impl<'tu> Module<'tu>
sourcepub fn get_name(&self) -> String
pub fn get_name(&self) -> String
Returns the name of this module (e.g., vector
for the std.vector
module).
sourcepub fn get_full_name(&self) -> String
pub fn get_full_name(&self) -> String
Returns the full name of this module (e.g., std.vector
for the std.vector
module).
sourcepub fn get_parent(&self) -> Option<Module<'tu>>
pub fn get_parent(&self) -> Option<Module<'tu>>
Returns the parent of this module, if any.
sourcepub fn get_top_level_headers(&self) -> Vec<File<'tu>>
pub fn get_top_level_headers(&self) -> Vec<File<'tu>>
Returns the top-level headers in this module.
Trait Implementations
impl<'tu> Copy for Module<'tu>
impl<'tu> Eq for Module<'tu>
Auto Trait Implementations
impl<'tu> RefUnwindSafe for Module<'tu>
impl<'tu> !Send for Module<'tu>
impl<'tu> !Sync for Module<'tu>
impl<'tu> Unpin for Module<'tu>
impl<'tu> UnwindSafe for Module<'tu>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more