[][src]Struct lindera_core::core::word_entry::WordEntry

pub struct WordEntry {
    pub word_id: WordId,
    pub word_cost: i16,
    pub cost_id: u16,
}

Fields

word_id: WordIdword_cost: i16cost_id: u16

Methods

impl WordEntry[src]

pub const SERIALIZED_LEN: usize[src]

pub fn left_id(&self) -> u32[src]

pub fn right_id(&self) -> u32[src]

pub fn serialize<W: Write>(&self, wtr: &mut W) -> Result<()>[src]

pub fn deserialize(data: &[u8]) -> WordEntry[src]

Trait Implementations

impl Clone for WordEntry[src]

impl Copy for WordEntry[src]

impl Debug for WordEntry[src]

impl Default for WordEntry[src]

impl<'de> Deserialize<'de> for WordEntry[src]

impl Eq for WordEntry[src]

impl PartialEq<WordEntry> for WordEntry[src]

impl Serialize for WordEntry[src]

impl StructuralEq for WordEntry[src]

impl StructuralPartialEq for WordEntry[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.