【发布时间】:2019-02-22 10:24:38
【问题描述】:
Windows NLS API Locale Information Constants 是否在 winapi-rs crate 或 Rust 生态系统的其他地方可用?
我需要从 Rust 调用 GetLocaleInformationEx 并在 winapi-rs crate (here) 的 um::winnls 模块中找到它。
LCType 输入是 Locale Information Constant——我无法在 crate 的任何地方找到这些定义。
作为一种解决方法,我查看了数值并对其进行了硬编码,但我总觉得我错过了一些东西。
【问题讨论】:
-
docs.rs/winapi/0.3.6/winapi/um/winnls/type.LCTYPE.html,这只是一个整数。我认为 Rust 中不存在这种资源。