pub struct WordInfoData {
pub surface: String,
pub head_word_length: u16,
pub pos_id: u16,
pub normalized_form: String,
pub dictionary_form_word_id: i32,
pub dictionary_form: String,
pub reading_form: String,
pub a_unit_split: Vec<WordId>,
pub b_unit_split: Vec<WordId>,
pub word_structure: Vec<WordId>,
pub synonym_group_ids: Vec<u32>,
}
Expand description
Internal storage of the WordInfo.
It is not accessible by default, but a WordInfo can be created from it:
let wi: WordInfo = data.into();
String fields CAN be empty, in this case the value of the surface field should be used instead
Fields§
§surface: String
§head_word_length: u16
§pos_id: u16
§normalized_form: String
§dictionary_form_word_id: i32
§dictionary_form: String
§reading_form: String
§a_unit_split: Vec<WordId>
§b_unit_split: Vec<WordId>
§word_structure: Vec<WordId>
§synonym_group_ids: Vec<u32>
Trait Implementations§
source§impl Clone for WordInfoData
impl Clone for WordInfoData
source§fn clone(&self) -> WordInfoData
fn clone(&self) -> WordInfoData
Returns a copy of the value. Read more
1.0.0 · 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 WordInfoData
impl Debug for WordInfoData
source§impl Default for WordInfoData
impl Default for WordInfoData
source§fn default() -> WordInfoData
fn default() -> WordInfoData
Returns the “default value” for a type. Read more
source§impl From<WordInfo> for WordInfoData
impl From<WordInfo> for WordInfoData
source§impl From<WordInfoData> for WordInfo
impl From<WordInfoData> for WordInfo
source§fn from(data: WordInfoData) -> Self
fn from(data: WordInfoData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WordInfoData
impl RefUnwindSafe for WordInfoData
impl Send for WordInfoData
impl Sync for WordInfoData
impl Unpin for WordInfoData
impl UnwindSafe for WordInfoData
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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