pub enum WrapMode {
Truncate,
Wrap,
}Expand description
Behavior when a cluster would extend past the right edge of the clip rectangle.
Newlines and carriage returns are handled independently of this setting:
\n advances to the next row at the clip rectangle’s left edge, and \r
returns to that left edge on the current row.
Variants§
Truncate
Stop painting at the right edge of the current row.
The cluster that would cross the edge is not written, and the returned cursor position is where painting stopped.
Wrap
Continue on the next row at the left edge of the clip rectangle.
Wrapping stops when the bottom edge is reached. If a cluster is wider than the clip rectangle itself, it is not written.
Trait Implementations§
impl Copy for WrapMode
impl Eq for WrapMode
impl StructuralPartialEq for WrapMode
Auto Trait Implementations§
impl Freeze for WrapMode
impl RefUnwindSafe for WrapMode
impl Send for WrapMode
impl Sync for WrapMode
impl Unpin for WrapMode
impl UnsafeUnpin for WrapMode
impl UnwindSafe for WrapMode
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