pub struct IndentationConfig {
pub style: IndentStyle,
pub indent_triggers: Vec<char>,
pub outdent_triggers: Vec<char>,
}Expand description
Indentation configuration for a language.
Notes:
- This is configuration only; applying language-aware indentation still depends on the host/editor policy layer.
Fields§
§style: IndentStylePreferred indent style for this language.
indent_triggers: Vec<char>Characters that typically introduce a new indentation level when they appear before an
inserted newline (e.g. {, : in Python, etc.).
outdent_triggers: Vec<char>Characters that typically decrease indentation (e.g. }, ], )).
Trait Implementations§
Source§impl Clone for IndentationConfig
impl Clone for IndentationConfig
Source§fn clone(&self) -> IndentationConfig
fn clone(&self) -> IndentationConfig
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 moreSource§impl Debug for IndentationConfig
impl Debug for IndentationConfig
Source§impl Default for IndentationConfig
impl Default for IndentationConfig
impl Eq for IndentationConfig
Source§impl PartialEq for IndentationConfig
impl PartialEq for IndentationConfig
Source§fn eq(&self, other: &IndentationConfig) -> bool
fn eq(&self, other: &IndentationConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IndentationConfig
Auto Trait Implementations§
impl Freeze for IndentationConfig
impl RefUnwindSafe for IndentationConfig
impl Send for IndentationConfig
impl Sync for IndentationConfig
impl Unpin for IndentationConfig
impl UnsafeUnpin for IndentationConfig
impl UnwindSafe for IndentationConfig
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