pub struct MatchedPattern {
pub start_of_word: bool,
pub offset: usize,
pub chars: String,
pub end_of_word: bool,
pub scores: Vec<u8>,
}Expand description
Pattern matched when performing hyphenation.
Fields§
§start_of_word: boolWhether this pattern only matches starts of words.
offset: usizeOffset in the word, in characters,that the pattern starts.
chars: StringCharacters in the pattern.
end_of_word: boolWhether this pattern only matches ends of words.
scores: Vec<u8>Scores for this pattern.
Trait Implementations§
Source§impl Debug for MatchedPattern
impl Debug for MatchedPattern
Source§impl Display for MatchedPattern
impl Display for MatchedPattern
Source§impl PartialEq for MatchedPattern
impl PartialEq for MatchedPattern
impl StructuralPartialEq for MatchedPattern
Auto Trait Implementations§
impl Freeze for MatchedPattern
impl RefUnwindSafe for MatchedPattern
impl Send for MatchedPattern
impl Sync for MatchedPattern
impl Unpin for MatchedPattern
impl UnwindSafe for MatchedPattern
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