Skip to main content

DependenciesCollection

Trait DependenciesCollection 

Source
pub trait DependenciesCollection: Sized {
    // Required methods
    fn registry_host_name(&self) -> &str;
    fn dependencies(&self) -> &[Dependency];
}
Expand description

Common view over dependency collections returned by extensions.

Required Methods§

Source

fn registry_host_name(&self) -> &str

Registry host that owns the dependencies.

Source

fn dependencies(&self) -> &[Dependency]

Dependencies found for the registry or file.

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§