pub struct HyphenationBreak {
pub char_len_on_line: usize,
pub width_on_line: f32,
pub line_part: Vec<ShapedItem>,
pub hyphen_item: ShapedItem,
pub remainder_part: Vec<ShapedItem>,
}Expand description
Represents a single valid hyphenation point within a word.
Fields§
§char_len_on_line: usizeThe number of characters from the original word string included on the line.
width_on_line: f32The total advance width of the line part + the hyphen.
line_part: Vec<ShapedItem>The cluster(s) that will remain on the current line.
hyphen_item: ShapedItemThe cluster that represents the hyphen character itself.
remainder_part: Vec<ShapedItem>The cluster(s) that will be carried over to the next line.
CRITICAL FIX: Changed from ShapedItem to Vec
Trait Implementations§
Source§impl Clone for HyphenationBreak
impl Clone for HyphenationBreak
Source§fn clone(&self) -> HyphenationBreak
fn clone(&self) -> HyphenationBreak
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HyphenationBreak
impl RefUnwindSafe for HyphenationBreak
impl Send for HyphenationBreak
impl Sync for HyphenationBreak
impl Unpin for HyphenationBreak
impl UnwindSafe for HyphenationBreak
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more