Trait ModuleTrait

Source
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§

Provided Methods§

Source

fn find<T: DeclarationTrait>(&self, steps: &[NameStep]) -> Option<&T>

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§