abstract_sdk/base/features/
dependencies.rs

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

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

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