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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TabKeyBehavior
Source§impl Debug for TabKeyBehavior
impl Debug for TabKeyBehavior
impl Eq for TabKeyBehavior
Source§impl PartialEq for TabKeyBehavior
impl PartialEq for TabKeyBehavior
Source§fn eq(&self, other: &TabKeyBehavior) -> bool
fn eq(&self, other: &TabKeyBehavior) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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