ModuleList

Trait ModuleList 

Source
pub trait ModuleList {
    // Required methods
    fn get_module_list(&self) -> Vec<Module>;
    fn get_main_module(&self) -> Module;

    // Provided method
    fn get_module(&self, name: &str) -> Option<Module> { ... }
}
Expand description

Represents a type that has access to a process’s modules

Required Methods§

Source

fn get_module_list(&self) -> Vec<Module>

Returns a list of all modules. If the implementor can only provide a single module based on the name, this function should panic

Source

fn get_main_module(&self) -> Module

Gets the main module from the process.

Provided Methods§

Source

fn get_module(&self, name: &str) -> Option<Module>

Returns a single module by name. If the module name does not exist, returns None

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + ModuleList + ?Sized> ModuleList for &'a T

Source§

impl<'a, T: 'a + ModuleList + ?Sized> ModuleList for &'a mut T

Source§

impl<T: ModuleList + ?Sized> ModuleList for Box<T>

Implementors§