pub struct ClampedLines {
pub lines: LineMetrics,
pub truncated: bool,
pub splits_word: bool,
}Expand description
The lines a clamp keeps (ShapedText::lines_within).
Fields§
§lines: LineMetricsThe kept lines.
truncated: boolWhether lines with content were cut off.
splits_word: boolWhether a kept line breaks inside a word. Uncut text breaks one when its min-content width exceeds the wrapping width.
Trait Implementations§
Source§impl Clone for ClampedLines
impl Clone for ClampedLines
impl Copy for ClampedLines
Source§impl Debug for ClampedLines
impl Debug for ClampedLines
Source§impl PartialEq for ClampedLines
impl PartialEq for ClampedLines
impl StructuralPartialEq for ClampedLines
Auto Trait Implementations§
impl Forget for ClampedLines
impl Freeze for ClampedLines
impl Move for ClampedLines
impl RefUnwindSafe for ClampedLines
impl Send for ClampedLines
impl Sync for ClampedLines
impl Unpin for ClampedLines
impl UnsafeUnpin for ClampedLines
impl UnwindSafe for ClampedLines
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