pub struct WordInfo { /* private fields */ }
Expand description
WordInfo API.
Internal data is not accessible by default, but can be extracted as
let data: WordInfoData = info.into()
.
Note: this will consume WordInfo.
Implementations§
source§impl WordInfo
impl WordInfo
pub fn surface(&self) -> &str
pub fn head_word_length(&self) -> usize
pub fn pos_id(&self) -> u16
pub fn normalized_form(&self) -> &str
pub fn dictionary_form_word_id(&self) -> i32
pub fn dictionary_form(&self) -> &str
pub fn reading_form(&self) -> &str
pub fn a_unit_split(&self) -> &[WordId]
pub fn b_unit_split(&self) -> &[WordId]
pub fn word_structure(&self) -> &[WordId]
pub fn synonym_group_ids(&self) -> &[u32]
pub fn borrow_data(&self) -> &WordInfoData
Trait Implementations§
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 WordInfo
impl RefUnwindSafe for WordInfo
impl Send for WordInfo
impl Sync for WordInfo
impl Unpin for WordInfo
impl UnwindSafe for WordInfo
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