Trait e_utils::parse::MyParseFormat
source · pub trait MyParseFormat {
// Required methods
fn parse_all(&self) -> Result<String>;
fn parse_format(&self) -> Result<String>;
fn parse_replace<F>(
&self,
start: char,
end: char,
match_value: F
) -> Result<String>
where F: Fn(String) -> String;
fn parse_env(&self) -> Result<String>;
fn parse_path(&self) -> String;
fn to_value(&self) -> Result<Value>;
}Expand description
解析格式
Required Methods§
sourcefn parse_format(&self) -> Result<String>
fn parse_format(&self) -> Result<String>
解析特殊关键词
sourcefn parse_replace<F>(
&self,
start: char,
end: char,
match_value: F
) -> Result<String>
fn parse_replace<F>( &self, start: char, end: char, match_value: F ) -> Result<String>
解析自定义关键词
sourcefn parse_path(&self) -> String
fn parse_path(&self) -> String
解析路径规范,统一’/’
Object Safety§
This trait is not object safe.