pub struct Module { /* private fields */ }Implementations§
Source§impl Module
impl Module
pub const fn name(&self) -> &'static str
pub const fn path(&self) -> &Path
pub fn find_functions_such_that( &self, f: impl Fn(&Function) -> bool, ) -> Vec<Function>
pub fn find_modules_such_that(&self, f: impl Fn(&Module) -> bool) -> Vec<Module>
pub fn find_attributes_such_that( &self, f: impl Fn(&Attribute) -> bool, ) -> Vec<&'static Attribute>
pub fn has_attribute_such_that(&self, f: impl Fn(&Attribute) -> bool) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnsafeUnpin for Module
impl UnwindSafe for Module
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