Struct egui_code_editor::Syntax
source · pub struct Syntax {
pub language: &'static str,
pub case_sensitive: bool,
pub comment: &'static str,
pub comment_multiline: [&'static str; 2],
pub keywords: HashSet<&'static str>,
pub types: HashSet<&'static str>,
pub special: HashSet<&'static str>,
}Expand description
Rules for highlighting.
Fields§
§language: &'static str§case_sensitive: bool§comment: &'static str§comment_multiline: [&'static str; 2]§keywords: HashSet<&'static str>§types: HashSet<&'static str>§special: HashSet<&'static str>Implementations§
Trait Implementations§
source§impl PartialEq<Syntax> for Syntax
impl PartialEq<Syntax> for Syntax
impl StructuralPartialEq for Syntax
Auto Trait Implementations§
impl RefUnwindSafe for Syntax
impl Send for Syntax
impl Sync for Syntax
impl Unpin for Syntax
impl UnwindSafe for Syntax
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