Struct hyphenation::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
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Subregion, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Subregion, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Subregion
impl UnwindSafe for Subregion
Blanket Implementations
Mutably borrows from an owned value. Read more