pub struct LanguageEditing {
pub line_comment: Option<String>,
pub block_comment: Option<(String, String)>,
pub auto_closing: Vec<(String, String)>,
pub brackets: Vec<(String, String)>,
pub indent_after: Vec<String>,
}Expand description
Language-specific editing data, set by the frontend from its language catalog: comment tokens for comment toggling, bracket and quote pairs for auto-closing.
Fields§
§line_comment: Option<String>§block_comment: Option<(String, String)>§auto_closing: Vec<(String, String)>§brackets: Vec<(String, String)>Bracket pairs: Enter after an opening bracket indents, and between a pair it opens an empty line with the closing bracket below.
indent_after: Vec<String>Line endings after which Enter indents one level more (: in Python).
Trait Implementations§
Source§impl Clone for LanguageEditing
impl Clone for LanguageEditing
Source§impl Debug for LanguageEditing
impl Debug for LanguageEditing
Source§impl Default for LanguageEditing
impl Default for LanguageEditing
impl Eq for LanguageEditing
Source§impl PartialEq for LanguageEditing
impl PartialEq for LanguageEditing
impl StructuralPartialEq for LanguageEditing
Auto Trait Implementations§
impl Forget for LanguageEditing
impl Freeze for LanguageEditing
impl Move for LanguageEditing
impl RefUnwindSafe for LanguageEditing
impl Send for LanguageEditing
impl Sync for LanguageEditing
impl Unpin for LanguageEditing
impl UnsafeUnpin for LanguageEditing
impl UnwindSafe for LanguageEditing
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