pub struct AutoPairConfig {
pub paren: bool,
pub bracket: bool,
pub brace: bool,
pub dquote: bool,
pub squote: bool,
pub backtick: bool,
pub asterisk: bool,
pub underscore: bool,
}Expand description
Per-character toggle bag for the auto-pair feature. Mirrored on
[continuity_config::Settings] (see [editor].auto_pair_*).
Fields§
§paren: bool( → ().
bracket: bool[ → [].
brace: bool{ → {}.
dquote: bool" → "".
squote: bool' → ''.
backtick: bool` → ``.
asterisk: bool* → **. Off by default — hurts more than helps in prose.
underscore: bool_ → __. Off by default — same rationale.
Implementations§
Trait Implementations§
Source§impl Clone for AutoPairConfig
impl Clone for AutoPairConfig
impl Copy for AutoPairConfig
Source§impl Debug for AutoPairConfig
impl Debug for AutoPairConfig
Auto Trait Implementations§
impl Forget for AutoPairConfig
impl Freeze for AutoPairConfig
impl Move for AutoPairConfig
impl RefUnwindSafe for AutoPairConfig
impl Send for AutoPairConfig
impl Sync for AutoPairConfig
impl Unpin for AutoPairConfig
impl UnsafeUnpin for AutoPairConfig
impl UnwindSafe for AutoPairConfig
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