Struct hyphenation_commons::dictionary::extended::Subregion [−][src]
pub struct Subregion { pub left: usize, pub right: usize, pub substitution: String, pub breakpoint: usize, }
Expand description
Word alterations extending a standard Knuth–Liang pattern.
Fields
left: usize
The number of bytes that the substitution will replace before the break.
right: usize
The number of bytes that the substitution will replace after the break.
substitution: String
The replacement for the substring to be altered around the break, as
delimited by the left
and right
subregion boundaries.
breakpoint: usize
An index into the substitution, denoting the hyphenation opportunity within this subregion.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Subregion
impl UnwindSafe for Subregion
Blanket Implementations
Mutably borrows from an owned value. Read more