pub struct Explanation {
pub lower_cased: String,
pub patterns: Vec<MatchedPattern>,
pub aggregate_scores: Vec<u8>,
}Expand description
Explanation of why a word is hyphenated the way it is.
Fields§
§lower_cased: StringLower cased word.
patterns: Vec<MatchedPattern>All patterns that matched the word.
aggregate_scores: Vec<u8>Aggregate scores among all scores for matching patterns.
Implementations§
Source§impl Explanation
impl Explanation
Sourcepub fn is_interesting(&self) -> bool
pub fn is_interesting(&self) -> bool
Whether this hyphenation explanation is “interesting”
A hyphenation is interesting if there is at least one hyphen and there is at least one position where there are competing patterns (i.e. one pattern says to hyphenate and another says not to).
Trait Implementations§
Source§impl Debug for Explanation
impl Debug for Explanation
Source§impl Display for Explanation
impl Display for Explanation
Source§impl PartialEq for Explanation
impl PartialEq for Explanation
impl StructuralPartialEq for Explanation
Auto Trait Implementations§
impl Freeze for Explanation
impl RefUnwindSafe for Explanation
impl Send for Explanation
impl Sync for Explanation
impl Unpin for Explanation
impl UnwindSafe for Explanation
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