pub struct AutoPairsConfig {
pub enabled: bool,
pub pairs: Vec<AutoPair>,
pub wrap_selection: bool,
pub skip_over_closing: bool,
pub delete_pair: bool,
}Expand description
Auto-pairs configuration used by EditCommand::TypeChar, and optionally by delete-like
commands (pair deletion).
Fields§
§enabled: boolMaster enable switch for auto-pairs behaviors.
pairs: Vec<AutoPair>Configured delimiter pairs (order matters when overlapping; first match wins).
wrap_selection: boolWhen typing an opening delimiter over a non-empty selection, wrap the selection.
skip_over_closing: boolWhen typing a closing delimiter and the next character matches, skip over it instead of inserting.
delete_pair: boolWhen backspacing/deleting adjacent matching delimiters, delete both.
Trait Implementations§
Source§impl Clone for AutoPairsConfig
impl Clone for AutoPairsConfig
Source§impl Debug for AutoPairsConfig
impl Debug for AutoPairsConfig
Source§impl Default for AutoPairsConfig
impl Default for AutoPairsConfig
impl Eq for AutoPairsConfig
Source§impl PartialEq for AutoPairsConfig
impl PartialEq for AutoPairsConfig
impl StructuralPartialEq for AutoPairsConfig
Auto Trait Implementations§
impl Forget for AutoPairsConfig
impl Freeze for AutoPairsConfig
impl Move for AutoPairsConfig
impl RefUnwindSafe for AutoPairsConfig
impl Send for AutoPairsConfigwhere
RawVecInner: Send,
impl Sync for AutoPairsConfigwhere
RawVecInner: Sync,
impl Unpin for AutoPairsConfig
impl UnsafeUnpin for AutoPairsConfig
impl UnwindSafe for AutoPairsConfigwhere
RawVecInner: UnwindSafe,
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