sway_core::language

Trait HasSubmodules

Source
pub trait HasSubmodules<E>
where E: HasModule<Self>, Self: Sized,
{ // Required method fn submodules(&self) -> &[(ModName, E)]; // Provided method fn submodules_recursive(&self) -> SubmodulesRecursive<'_, Self, E> { ... } }

Required Methods§

Source

fn submodules(&self) -> &[(ModName, E)]

Returns the submodules of this module.

Provided Methods§

Source

fn submodules_recursive(&self) -> SubmodulesRecursive<'_, Self, E>

An iterator yielding all submodules recursively, depth-first.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§