Struct move_bytecode_utils::Modules
source · pub struct Modules<'a>(_);
Expand description
Set of Move modules indexed by module Id
Implementations§
source§impl<'a> Modules<'a>
impl<'a> Modules<'a>
sourcepub fn new(modules: impl IntoIterator<Item = &'a CompiledModule>) -> Self
pub fn new(modules: impl IntoIterator<Item = &'a CompiledModule>) -> Self
Construct a set of modules from a slice modules
.
Panics if modules
contains duplicates
sourcepub fn iter_modules(&self) -> Vec<&CompiledModule> ⓘ
pub fn iter_modules(&self) -> Vec<&CompiledModule> ⓘ
Return all modules in this set
sourcepub fn compute_dependency_graph(&self) -> DependencyGraph<'_>
pub fn compute_dependency_graph(&self) -> DependencyGraph<'_>
Compute a dependency graph for self
sourcepub fn get_module(&self, module_id: &ModuleId) -> Result<&CompiledModule>
pub fn get_module(&self, module_id: &ModuleId) -> Result<&CompiledModule>
Return the bytecode for the module bound to module_id
sourcepub fn get_immediate_dependencies(
&self,
module_id: &ModuleId
) -> Result<Vec<&CompiledModule>>
pub fn get_immediate_dependencies( &self, module_id: &ModuleId ) -> Result<Vec<&CompiledModule>>
Return the immediate dependencies for module_id
sourcepub fn get_transitive_dependencies(
&self,
module_id: &ModuleId
) -> Result<Vec<&CompiledModule>>
pub fn get_transitive_dependencies( &self, module_id: &ModuleId ) -> Result<Vec<&CompiledModule>>
Return the transitive dependencies for module_id
Trait Implementations§
source§impl<'a> PartialEq<Modules<'a>> for Modules<'a>
impl<'a> PartialEq<Modules<'a>> for Modules<'a>
impl<'a> Eq for Modules<'a>
impl<'a> StructuralEq for Modules<'a>
impl<'a> StructuralPartialEq for Modules<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Modules<'a>
impl<'a> Send for Modules<'a>
impl<'a> Sync for Modules<'a>
impl<'a> Unpin for Modules<'a>
impl<'a> UnwindSafe for Modules<'a>
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.