#[repr(C)]pub struct msime_engine_paths {
pub struct_size: u32,
pub resources: msime_engine_str,
pub user_data: msime_engine_str,
pub cache: msime_engine_str,
pub dictionaries: msime_engine_str,
}Expand description
运行时的四个根目录(ABI 1.0),都要是绝对路径,UTF-8。库只读 min(调用方大小, 库内大小) 个字节,读不到的字段按全零处理。
Fields§
§struct_size: u32§resources: msime_engine_str只读的随包资源:词库、辅助码表、模型。
user_data: msime_engine_str用户数据:学习日志 msime_user.db 和代次目录 dictionaries/。
cache: msime_engine_str可以随时清空的缓存。
dictionaries: msime_engine_str代次目录,msime_engine_prepare_runtime 准备并交回;msime_engine_prepare_runtime 不读这一项,调用方可以不填。
Trait Implementations§
Source§impl Clone for msime_engine_paths
impl Clone for msime_engine_paths
impl Copy for msime_engine_paths
Auto Trait Implementations§
impl !Send for msime_engine_paths
impl !Sync for msime_engine_paths
impl Freeze for msime_engine_paths
impl RefUnwindSafe for msime_engine_paths
impl Unpin for msime_engine_paths
impl UnsafeUnpin for msime_engine_paths
impl UnwindSafe for msime_engine_paths
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more