pub enum ViewCommand {
SetViewportWidth {
width: usize,
},
SetTabWidth {
width: usize,
},
SetTabKeyBehavior {
behavior: TabKeyBehavior,
},
ScrollTo {
line: usize,
},
GetViewport {
start_row: usize,
count: usize,
},
}Expand description
View commands
Variants§
SetViewportWidth
Set viewport width
SetTabWidth
Set tab width (in character cells) used for measuring '\t' and tab stops.
SetTabKeyBehavior
Configure how EditCommand::InsertTab inserts text.
Fields
§
behavior: TabKeyBehaviorTab key behavior.
ScrollTo
Scroll to specified line
GetViewport
Get current viewport content
Trait Implementations§
Source§impl Clone for ViewCommand
impl Clone for ViewCommand
Source§fn clone(&self) -> ViewCommand
fn clone(&self) -> ViewCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ViewCommand
impl Debug for ViewCommand
Source§impl PartialEq for ViewCommand
impl PartialEq for ViewCommand
impl Eq for ViewCommand
impl StructuralPartialEq for ViewCommand
Auto Trait Implementations§
impl Freeze for ViewCommand
impl RefUnwindSafe for ViewCommand
impl Send for ViewCommand
impl Sync for ViewCommand
impl Unpin for ViewCommand
impl UnwindSafe for ViewCommand
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