Skip to main content

WordInfoRawData

Struct WordInfoRawData 

Source
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: i16

bytes 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: String

Trait Implementations§

Source§

impl Clone for WordInfoRawData

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for WordInfoRawData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for WordInfoRawData

Source§

fn default() -> WordInfoRawData

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.