pub struct Settings {
pub tab_width: usize,
pub use_spaces: bool,
pub auto_close: bool,
pub smart_indent: bool,
pub overtype: bool,
}Expand description
Defaults for new buffers (each buffer has its own Indent).
Fields§
§tab_width: usize§use_spaces: boolThe Tab key inserts spaces instead of a tab character.
auto_close: boolTyping an opening bracket or quote inserts its partner (Notepad++’s
Auto-Insert; see autoclose).
smart_indent: boolEnter after an opening bracket indents, and a closing bracket lines
up with its partner (see smart_indent).
overtype: boolTyping replaces the character after the caret (the Insert key; see
overtype).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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