pub trait HasSubmodules<E>{
// Required method
fn submodules(&self) -> &[(ModName, E)];
// Provided method
fn submodules_recursive(&self) -> SubmodulesRecursive<'_, Self, E> ⓘ { ... }
}
Required Methods§
Sourcefn submodules(&self) -> &[(ModName, E)]
fn submodules(&self) -> &[(ModName, E)]
Returns the submodules of this module.
Provided Methods§
Sourcefn submodules_recursive(&self) -> SubmodulesRecursive<'_, Self, E> ⓘ
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.