pub enum CaretCell {
Cell(u32),
ChipCenter(f32),
}Expand description
Where a caret at some byte column renders horizontally: a whole display
cell, or — for a column hidden inside a collapsed inline fold — the center
of that fold’s … chip. The chip center is the only fractional cell in
the system; fencing it in this enum keeps f32 out of the inverse maps.
Variants§
Cell(u32)
An exact display cell.
ChipCenter(f32)
The fractional cell at a collapsed chip’s visual center.
Implementations§
Trait Implementations§
impl Copy for CaretCell
impl StructuralPartialEq for CaretCell
Auto Trait Implementations§
impl Freeze for CaretCell
impl RefUnwindSafe for CaretCell
impl Send for CaretCell
impl Sync for CaretCell
impl Unpin for CaretCell
impl UnsafeUnpin for CaretCell
impl UnwindSafe for CaretCell
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