1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::base::Handler;
use core::objects::dependency::StaticDependency;

/// Retrieve the dependencies of a module.
pub trait Dependencies: Sized {
    fn dependencies(&self) -> &[StaticDependency];
}

impl<T: Handler> Dependencies for T {
    fn dependencies(&self) -> &[StaticDependency] {
        Handler::dependencies(self)
    }
}