pub trait DepsTuple: Sized {
// Required methods
fn resolve(store: &Store) -> Result<Self, AppError>;
fn dep_type_ids() -> Vec<TypeId>;
}Expand description
依赖元组 trait — 用宏为不同元数自动实现
从 Store 解析所有依赖,返回元组。
Required Methods§
Sourcefn dep_type_ids() -> Vec<TypeId>
fn dep_type_ids() -> Vec<TypeId>
返回依赖的 TypeId 列表(用于拓扑排序)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".