#[non_exhaustive]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. More fields may
come: start from LanguageEditing::default() and set the fields.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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