pub trait ConfigParser<T> {
type Output;
type Error;
// Required method
fn parse(&self, config: T) -> Result<Self::Output, Self::Error>;
}Expand description
配置解析器接口
pub trait ConfigParser<T> {
type Output;
type Error;
// Required method
fn parse(&self, config: T) -> Result<Self::Output, Self::Error>;
}配置解析器接口