pub enum CodeLang {
Generic,
Rust,
Diff,
Json,
Toml,
Yaml,
}Expand description
Pre-resolved syntax language used by the Eva code tokenizer without per-line string allocations.
Variants§
Generic
Generic programming language syntax.
Rust
Rust source syntax ("rust").
Diff
Unified diff patch syntax ("diff").
Json
JSON object/array syntax ("json").
Toml
TOML key-value configuration syntax ("toml").
Yaml
YAML key-value configuration syntax ("yaml").
Implementations§
Trait Implementations§
impl Copy for CodeLang
impl Eq for CodeLang
impl StructuralPartialEq for CodeLang
Auto Trait Implementations§
impl Forget for CodeLang
impl Freeze for CodeLang
impl Move for CodeLang
impl RefUnwindSafe for CodeLang
impl Send for CodeLang
impl Sync for CodeLang
impl Unpin for CodeLang
impl UnsafeUnpin for CodeLang
impl UnwindSafe for CodeLang
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