pub enum TabKeyBehavior {
Tab,
Spaces,
}Expand description
Controls how a Tab key press is handled by the editor when using EditCommand::InsertTab.
Variants§
Tab
Insert a literal tab character ('\t').
Spaces
Insert spaces up to the next tab stop (based on the current tab_width setting).
Trait Implementations§
Source§impl Clone for TabKeyBehavior
impl Clone for TabKeyBehavior
Source§fn clone(&self) -> TabKeyBehavior
fn clone(&self) -> TabKeyBehavior
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 TabKeyBehavior
impl Debug for TabKeyBehavior
Source§impl PartialEq for TabKeyBehavior
impl PartialEq for TabKeyBehavior
impl Copy for TabKeyBehavior
impl Eq for TabKeyBehavior
impl StructuralPartialEq for TabKeyBehavior
Auto Trait Implementations§
impl Freeze for TabKeyBehavior
impl RefUnwindSafe for TabKeyBehavior
impl Send for TabKeyBehavior
impl Sync for TabKeyBehavior
impl Unpin for TabKeyBehavior
impl UnwindSafe for TabKeyBehavior
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