Skip to main content

replace_face_macro

Function replace_face_macro 

Source
pub fn replace_face_macro(
    source: &str,
    replacement: &str,
) -> Result<String, FaceSyntaxError>
Expand description

Replace only the registration macro, preserving the surrounding Rust code. 只替换注册宏,保留同一文件里的其余 Rust 实现。