Skip to main content

Shelling

Trait Shelling 

Source
pub trait Shelling<T, P: AsRef<Path>> {
    // Required method
    fn shelling(self, base: P) -> T;
}
Expand description

此 trait 用于提供原始配置文件数据(XXConfig)转换到最小配置数据结构(XX)的能力

Required Methods§

Source

fn shelling(self, base: P) -> T

剥壳函数,此函数实现校验逻辑 base 为配置文件所在的绝对路径

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§