pub struct View {
pub selections: SelectionSet,
pub scroll: ScrollPos,
pub wrap_cols: Option<usize>,
pub padding: Option<Arc<Padding>>,
pub begin_select: Option<ByteOffset>,
/* private fields */
}Fields§
§selections: SelectionSet§scroll: ScrollPos§wrap_cols: Option<usize>Wrap width in cells, or None when lines do not wrap. The editor
widget sets it from the pane’s width.
padding: Option<Arc<Padding>>Blank rows between lines, aligning this view with another (one side of a compare view). With padding, folds and wrap do not apply.
begin_select: Option<ByteOffset>Where Edit > Begin/End Select began, until it ends; Editor keeps
it in step with edits, as it does selections.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for View
impl !RefUnwindSafe for View
impl !Sync for View
impl Send for View
impl Unpin for View
impl UnsafeUnpin for View
impl UnwindSafe for View
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