Struct lindera_core::mode::Penalty
source · pub struct Penalty {
pub kanji_penalty_length_threshold: usize,
pub kanji_penalty_length_penalty: i32,
pub other_penalty_length_threshold: usize,
pub other_penalty_length_penalty: i32,
}
Fields§
§kanji_penalty_length_threshold: usize
§kanji_penalty_length_penalty: i32
§other_penalty_length_threshold: usize
§other_penalty_length_penalty: i32
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Penalty
impl<'de> Deserialize<'de> for Penalty
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Penalty
impl PartialEq for Penalty
impl Eq for Penalty
impl StructuralPartialEq for Penalty
Auto Trait Implementations§
impl Freeze for Penalty
impl RefUnwindSafe for Penalty
impl Send for Penalty
impl Sync for Penalty
impl Unpin for Penalty
impl UnwindSafe for Penalty
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