abstract_sdk/base/features/dependencies.rs
1use crate::{base::Handler, std::objects::dependency::StaticDependency};
2
3/// Retrieve the dependencies of a module.
4pub trait Dependencies: Sized {
5 /// Get the dependencies of the module.
6 fn dependencies(&self) -> &'static [StaticDependency];
7}
8
9impl<T: Handler> Dependencies for T {
10 fn dependencies(&self) -> &'static [StaticDependency] {
11 Handler::dependencies(self)
12 }
13}