Skip to main content

kr_adopt_dictionaries

Function kr_adopt_dictionaries 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn kr_adopt_dictionaries( pointer: *mut Engine, english: *const Dictionary, russian: *const Dictionary, ) -> u32
Expand description

Adopt both immutable dictionaries together without changing policy or session state. Null means missing; a parsed empty dictionary means ready. A pending proposal refuses adoption.

ยงSafety

pointer must be a live unique serialized engine or null. Each non-null dictionary must be a live allocation from kr_dictionary_parse_utf8, kept alive throughout this call. Shared immutable dictionary borrows may overlap; none may overlap freeing its handle.