pub struct Language { /* private fields */ }Expand description
A single language: its tree-sitter grammar plus a compiled highlight
query. Construction fails only if highlight_query_source doesn’t parse
against grammar — a bug in the bundled query, not user input, so a
caller-facing Result would just be unwrapped everywhere; panicking here
surfaces the bug immediately in development instead.
Implementations§
Auto Trait Implementations§
impl Freeze for Language
impl RefUnwindSafe for Language
impl Send for Language
impl Sync for Language
impl Unpin for Language
impl UnsafeUnpin for Language
impl UnwindSafe for Language
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