pub struct WordInfoRawData {Show 18 fields
pub pos_id: i16,
pub headword_strptr: StringPointer,
pub reading_form_strptr: StringPointer,
pub normalized_form: u32,
pub dictionary_form: u32,
pub index_form_length: i16,
pub c_unit_split_length: i8,
pub b_unit_split_length: i8,
pub a_unit_split_length: i8,
pub word_structure_length: i8,
pub synonym_group_ids_length: i8,
pub user_data_flag: i8,
pub c_unit_split: Vec<u32>,
pub b_unit_split: Vec<u32>,
pub a_unit_split: Vec<u32>,
pub word_structure: Vec<u32>,
pub synonym_group_ids: Vec<i32>,
pub user_data: String,
}Expand description
Parsed raw binary representation of a word info entry.
word id/ref fields are typed as u32 to avoid type conversion. crate::dic::word_info::{WordInfoData, WordInfoRefData} will handle those types.
Fields§
§pos_id: i16§headword_strptr: StringPointer§reading_form_strptr: StringPointer§normalized_form: u32§dictionary_form: u32§index_form_length: i16bytes length of the index form in utf-8.
c_unit_split_length: i8§b_unit_split_length: i8§a_unit_split_length: i8§word_structure_length: i8§synonym_group_ids_length: i8§user_data_flag: i8§c_unit_split: Vec<u32>§b_unit_split: Vec<u32>§a_unit_split: Vec<u32>§word_structure: Vec<u32>§synonym_group_ids: Vec<i32>§user_data: StringTrait Implementations§
Source§impl Clone for WordInfoRawData
impl Clone for WordInfoRawData
Source§fn clone(&self) -> WordInfoRawData
fn clone(&self) -> WordInfoRawData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WordInfoRawData
impl Debug for WordInfoRawData
Source§impl Default for WordInfoRawData
impl Default for WordInfoRawData
Source§fn default() -> WordInfoRawData
fn default() -> WordInfoRawData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WordInfoRawData
impl RefUnwindSafe for WordInfoRawData
impl Send for WordInfoRawData
impl Sync for WordInfoRawData
impl Unpin for WordInfoRawData
impl UnsafeUnpin for WordInfoRawData
impl UnwindSafe for WordInfoRawData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more