Editor

Trait Editor 

Source
pub trait Editor: Hash {
    // Required methods
    fn append(&self, job: &mut LayoutJob, token: &Token);
    fn syntax(&self) -> &Syntax;
}

Required Methods§

Source

fn append(&self, job: &mut LayoutJob, token: &Token)

Source

fn syntax(&self) -> &Syntax

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Editor for CodeEditor

Available on crate features editor and egui only.