pub enum BoxExtent {
Line,
Revealed,
Block,
}Expand description
Which part of each line a text’s background box spans.
Variants§
Line
From the line’s first cluster to its last that is not a hanging space, where tracking and pushing place them.
Revealed
From the first to the last revealed cluster that is not white space: one shown, not scaled to nothing, and not hidden by a reveal edge. A line with none has no box; a line whose clusters all show has its line box.
Block
One box over the whole layout box: the wrap width by the lines’ height.
Trait Implementations§
impl Copy for BoxExtent
impl Eq for BoxExtent
impl StructuralPartialEq for BoxExtent
Auto Trait Implementations§
impl Forget for BoxExtent
impl Freeze for BoxExtent
impl Move for BoxExtent
impl RefUnwindSafe for BoxExtent
impl Send for BoxExtent
impl Sync for BoxExtent
impl Unpin for BoxExtent
impl UnsafeUnpin for BoxExtent
impl UnwindSafe for BoxExtent
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