pub trait ModuleTrait {
// Required methods
fn declarations(&self) -> &[Declaration] ⓘ;
fn content_uri(&self) -> ContentURIRef<'_>;
// Provided method
fn find<T: DeclarationTrait>(&self, steps: &[NameStep]) -> Option<&T> { ... }
}
Required Methods§
fn declarations(&self) -> &[Declaration] ⓘ
fn content_uri(&self) -> ContentURIRef<'_>
Provided Methods§
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.