pub trait ResourceLoader: Send + Sync {
// Required method
fn parse_localized_names_from_dir(
&self,
dir_path: &Path,
) -> HashMap<String, String>;
}Expand description
平台资源加载器 trait,定义平台原语。 各平台实现通过系统 API 加载本地化字符串资源, 插件通过 PluginHandle 委托调用。
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".